From 256c74def28cfc7ea5a37a45c1ab17a67dd14428 Mon Sep 17 00:00:00 2001 From: Eladash Date: Wed, 22 Apr 2020 20:52:23 +0300 Subject: [PATCH] sys_rsx: Fix error code instead of success on invalid context --- rpcs3/Emu/Cell/lv2/sys_rsx.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rpcs3/Emu/Cell/lv2/sys_rsx.cpp b/rpcs3/Emu/Cell/lv2/sys_rsx.cpp index 96aa442359..042867af4d 100644 --- a/rpcs3/Emu/Cell/lv2/sys_rsx.cpp +++ b/rpcs3/Emu/Cell/lv2/sys_rsx.cpp @@ -407,7 +407,8 @@ error_code sys_rsx_context_attribute(u32 context_id, u32 package_id, u64 a3, u64 if (!rsx_cfg->context_base || context_id != 0x55555555) { - return CELL_EINVAL; + sys_rsx.error("sys_rsx_context_attribute(): invalid context failure (context_id=0x%x)", context_id); + return CELL_OK; // Actually returns CELL_OK, cellGCmSys seem to be relying on this as well } auto &driverInfo = vm::_ref(rsx_cfg->driver_info);