From d8402008ddc23300c278e28e50a70313fc923ef6 Mon Sep 17 00:00:00 2001 From: Eladash Date: Wed, 14 Aug 2019 21:02:17 +0300 Subject: [PATCH] Stub sys_process_get_number_of_object(object == SYS_SPUPORT_OBJECT) --- rpcs3/Emu/Cell/lv2/sys_process.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rpcs3/Emu/Cell/lv2/sys_process.cpp b/rpcs3/Emu/Cell/lv2/sys_process.cpp index 1f59aad125..e771b6d186 100644 --- a/rpcs3/Emu/Cell/lv2/sys_process.cpp +++ b/rpcs3/Emu/Cell/lv2/sys_process.cpp @@ -72,7 +72,7 @@ s32 sys_process_get_number_of_object(u32 object, vm::ptr nump) case SYS_TRACE_OBJECT: sys_process.error("sys_process_get_number_of_object: object = SYS_TRACE_OBJECT"); *nump = 0; break; case SYS_SPUIMAGE_OBJECT: *nump = idm_get_count(); break; case SYS_PRX_OBJECT: *nump = idm_get_count(); break; - case SYS_SPUPORT_OBJECT: fmt::throw_exception("SYS_SPUPORT_OBJECT" HERE); + case SYS_SPUPORT_OBJECT: sys_process.error("sys_process_get_number_of_object: object = SYS_SPUPORT_OBJECT"); *nump = 0; break; case SYS_OVERLAY_OBJECT: *nump = idm_get_count(); break; case SYS_LWMUTEX_OBJECT: *nump = idm_get_count(); break; case SYS_TIMER_OBJECT: *nump = idm_get_count(); break; @@ -120,7 +120,6 @@ s32 sys_process_get_id(u32 object, vm::ptr buffer, u32 size, vm::ptr s case SYS_TRACE_OBJECT: fmt::throw_exception("SYS_TRACE_OBJECT" HERE); case SYS_SPUIMAGE_OBJECT: idm_get_set(objects); break; case SYS_PRX_OBJECT: idm_get_set(objects); break; - case SYS_SPUPORT_OBJECT: fmt::throw_exception("SYS_SPUPORT_OBJECT" HERE); case SYS_OVERLAY_OBJECT: idm_get_set(objects); break; case SYS_LWMUTEX_OBJECT: idm_get_set(objects); break; case SYS_TIMER_OBJECT: idm_get_set(objects); break; @@ -129,6 +128,7 @@ s32 sys_process_get_id(u32 object, vm::ptr buffer, u32 size, vm::ptr s case SYS_LWCOND_OBJECT: idm_get_set(objects); break; case SYS_EVENT_FLAG_OBJECT: idm_get_set(objects); break; + case SYS_SPUPORT_OBJECT: // Unallowed default: { return CELL_EINVAL;