From 5d3b0e73522dbb7b7138e6ee14c6580e07372d0a Mon Sep 17 00:00:00 2001 From: Ofek Date: Mon, 2 Jul 2018 01:07:21 +0300 Subject: [PATCH] Fix cellGameDataCheckCreate2 (#4832) * Fix cellGameDataCheckCreate2 --- rpcs3/Emu/Cell/Modules/cellGame.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/rpcs3/Emu/Cell/Modules/cellGame.cpp b/rpcs3/Emu/Cell/Modules/cellGame.cpp index 29ad3c1558..1f297fb53a 100644 --- a/rpcs3/Emu/Cell/Modules/cellGame.cpp +++ b/rpcs3/Emu/Cell/Modules/cellGame.cpp @@ -460,8 +460,6 @@ error_code cellGameDataCheckCreate2(ppu_thread& ppu, u32 version, vm::cptr vm::var cbSet; cbGet->isNewData = fs::is_dir(vfs::get(dir)) ? CELL_GAMEDATA_ISNEWDATA_NO : CELL_GAMEDATA_ISNEWDATA_YES; - vm::var setParam; - cbSet->setParam = setParam; // TODO: Use the free space of the computer's HDD where RPCS3 is being run. cbGet->hddFreeSizeKB = 40000000; //40 GB @@ -491,6 +489,10 @@ error_code cellGameDataCheckCreate2(ppu_thread& ppu, u32 version, vm::cptr strcpy_trunc(cbGet->getParam.titleLang[i], psf::get_string(sfo, fmt::format("TITLE_%02d", i))); } + vm::var setParam; + *setParam = cbGet->getParam; + cbSet->setParam = setParam; + funcStat(ppu, cbResult, cbGet, cbSet); switch ((s32)cbResult->result)