From ca835ba68ae7e9570522420632d13d15d7c8a077 Mon Sep 17 00:00:00 2001 From: AnnieL Date: Thu, 14 Jul 2016 21:12:26 +0100 Subject: [PATCH] cellGame: unknown category temporary fix (hack) (#1909) All the games I've been trying to load from outside RPCS3's bin directory are returning me empty directories ``` {PPU[0x3] Thread (main_thread) [0x011223d8]} class fmt::exception thrown: cellGameBootCheck(): Unknown CATEGORY: ``` This is a hack for when the category is empty or unknown. We assume it's a disk game and proceed with the emulation. --- rpcs3/Emu/Cell/Modules/cellGame.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/rpcs3/Emu/Cell/Modules/cellGame.cpp b/rpcs3/Emu/Cell/Modules/cellGame.cpp index 7fd439d1ad..682f1568ad 100644 --- a/rpcs3/Emu/Cell/Modules/cellGame.cpp +++ b/rpcs3/Emu/Cell/Modules/cellGame.cpp @@ -207,7 +207,11 @@ ppu_error_code cellGameBootCheck(vm::ptr type, vm::ptr attributes, vm: } else { - throw fmt::exception("cellGameBootCheck(): Unknown CATEGORY: %s", category); + // Hack: When there is no (or unknown) CATEGORY returned, instead of throwing an exception + // we assume it's a disk game. + *type = CELL_GAME_GAMETYPE_DISC; + *attributes = 0; + cellGame.error("cellGameBootCheck(): Unknown CATEGORY: %s", category); } return CELL_GAME_RET_OK;