From f1e8739608b8bc04378b8175b63e60115b3ec73b Mon Sep 17 00:00:00 2001 From: Eladash Date: Fri, 18 Sep 2020 22:11:36 +0300 Subject: [PATCH] Always reset size in cellGameGetSizeKB Reversed. --- rpcs3/Emu/Cell/Modules/cellGame.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rpcs3/Emu/Cell/Modules/cellGame.cpp b/rpcs3/Emu/Cell/Modules/cellGame.cpp index 09397c0c69..52d3cf2209 100644 --- a/rpcs3/Emu/Cell/Modules/cellGame.cpp +++ b/rpcs3/Emu/Cell/Modules/cellGame.cpp @@ -961,6 +961,9 @@ error_code cellGameGetSizeKB(vm::ptr size) return CELL_GAME_ERROR_PARAM; } + // Always reset to 0 at start + *size = 0; + const auto prm = g_fxo->get(); const auto init = prm->init.access(); @@ -980,7 +983,6 @@ error_code cellGameGetSizeKB(vm::ptr size) if (!fs::exists(local_dir)) { - *size = 0; return CELL_OK; } else