From 1a92526ba006efcf319d05d4a3867dacf96a1dde Mon Sep 17 00:00:00 2001 From: Raul Tambre Date: Wed, 13 Aug 2014 10:57:55 +0300 Subject: [PATCH] Don't set game's size info in Patch and Data check --- rpcs3/Emu/SysCalls/Modules/cellGame.cpp | 26 +++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/rpcs3/Emu/SysCalls/Modules/cellGame.cpp b/rpcs3/Emu/SysCalls/Modules/cellGame.cpp index bc57e18af1..494963cd94 100644 --- a/rpcs3/Emu/SysCalls/Modules/cellGame.cpp +++ b/rpcs3/Emu/SysCalls/Modules/cellGame.cpp @@ -93,12 +93,15 @@ int cellGamePatchCheck(mem_ptr_t size, u32 reserved_addr) return CELL_GAME_ERROR_PARAM; } - // TODO: Use the free space of the computer's HDD where RPCS3 is being run. - size->hddFreeSizeKB = 40000000; // 40 GB + if (size) + { + // TODO: Use the free space of the computer's HDD where RPCS3 is being run. + size->hddFreeSizeKB = 40000000; // 40 GB - // TODO: Calculate data size for patch data, if necessary. - size->sizeKB = CELL_GAME_SIZEKB_NOTCALC; - size->sysSizeKB = 0; + // TODO: Calculate data size for patch data, if necessary. + size->sizeKB = CELL_GAME_SIZEKB_NOTCALC; + size->sysSizeKB = 0; + } vfsFile f("/app_home/PARAM.SFO"); if (!f.IsOpened()) @@ -138,12 +141,15 @@ int cellGameDataCheck(u32 type, const mem_list_ptr_t dirName, mem_ptr_thddFreeSizeKB = 40000000; //40 GB + if (size) + { + // TODO: Use the free space of the computer's HDD where RPCS3 is being run. + size->hddFreeSizeKB = 40000000; //40 GB - // TODO: Calculate data size for game data, if necessary. - size->sizeKB = CELL_GAME_SIZEKB_NOTCALC; - size->sysSizeKB = 0; + // TODO: Calculate data size for game data, if necessary. + size->sizeKB = CELL_GAME_SIZEKB_NOTCALC; + size->sysSizeKB = 0; + } if (type == CELL_GAME_GAMETYPE_DISC) {