mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-16 03:38:38 +12:00
Always reset size in cellGameGetSizeKB
Reversed.
This commit is contained in:
parent
b31a0115b2
commit
f1e8739608
1 changed files with 3 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue