From e3ea29599d471e42211714ebd62bdfd25bc4129d Mon Sep 17 00:00:00 2001 From: Megamouse Date: Wed, 9 Jan 2019 23:31:51 +0100 Subject: [PATCH] cellGame: fix some installation issues fixes HAWX2 (at least until it crashes again) --- rpcs3/Emu/Cell/Modules/cellGame.cpp | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/rpcs3/Emu/Cell/Modules/cellGame.cpp b/rpcs3/Emu/Cell/Modules/cellGame.cpp index 3376ad1246..2569323469 100644 --- a/rpcs3/Emu/Cell/Modules/cellGame.cpp +++ b/rpcs3/Emu/Cell/Modules/cellGame.cpp @@ -833,11 +833,24 @@ error_code cellGameGetSizeKB(vm::ptr size) return CELL_GAME_ERROR_FAILURE; } + if (Emu.GetCat() == "DG") + { + return CELL_GAME_ERROR_NOTSUPPORTED; + } + const std::string local_dir = !prm->temp.empty() ? prm->temp : vfs::get("/dev_hdd0/game/" + prm->dir); if (!fs::is_dir(local_dir)) { - return CELL_GAME_ERROR_ACCESS_ERROR; + if (fs::g_tls_error == fs::error::noent) + { + *size = 0; + return CELL_OK; + } + else + { + return CELL_GAME_ERROR_ACCESS_ERROR; + } } *size = ::narrow(fs::get_dir_size(local_dir) / 1024);