Always reset size in cellGameGetSizeKB

Reversed.
This commit is contained in:
Eladash 2020-09-18 22:11:36 +03:00 committed by Ani
parent b31a0115b2
commit f1e8739608

View file

@ -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