mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-06-06 07:05:04 -06:00
Always reset size in cellGameGetSizeKB
Reversed.
This commit is contained in:
parent
b31a0115b2
commit
f1e8739608
@ -961,6 +961,9 @@ error_code cellGameGetSizeKB(vm::ptr<s32> size)
|
|||||||
return CELL_GAME_ERROR_PARAM;
|
return CELL_GAME_ERROR_PARAM;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Always reset to 0 at start
|
||||||
|
*size = 0;
|
||||||
|
|
||||||
const auto prm = g_fxo->get<content_permission>();
|
const auto prm = g_fxo->get<content_permission>();
|
||||||
|
|
||||||
const auto init = prm->init.access();
|
const auto init = prm->init.access();
|
||||||
@ -980,7 +983,6 @@ error_code cellGameGetSizeKB(vm::ptr<s32> size)
|
|||||||
|
|
||||||
if (!fs::exists(local_dir))
|
if (!fs::exists(local_dir))
|
||||||
{
|
{
|
||||||
*size = 0;
|
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user