From 9134388f944f327426ee0dc50e64add631f65419 Mon Sep 17 00:00:00 2001 From: Eladash Date: Tue, 8 Sep 2020 05:38:45 +0300 Subject: [PATCH] sys_process: Implement exitspawn error checking --- rpcs3/Emu/Cell/lv2/sys_process.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/rpcs3/Emu/Cell/lv2/sys_process.cpp b/rpcs3/Emu/Cell/lv2/sys_process.cpp index 9ae93bc78f..dedaf17592 100644 --- a/rpcs3/Emu/Cell/lv2/sys_process.cpp +++ b/rpcs3/Emu/Cell/lv2/sys_process.cpp @@ -359,7 +359,14 @@ void _sys_process_exit2(ppu_thread& ppu, s32 status, vm::ptr ar } Emu.SetForceBoot(true); - Emu.BootGame(path, "", true); + + auto res = Emu.BootGame(path, "", true); + + if (res != game_boot_result::no_errors) + { + sys_process.fatal("Failed to boot from exitspawn! (path=\"%s\", error=%s)", path, res); + Emu.Stop(); + } }); ppu.state += cpu_flag::dbg_global_stop;