From e57f36fc5bdddaab049700f1f06a74d564674158 Mon Sep 17 00:00:00 2001 From: Eladash Date: Fri, 2 Apr 2021 19:00:09 +0300 Subject: [PATCH] Quick sys_sm_get_params implementation --- rpcs3/Emu/Cell/lv2/sys_sm.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/rpcs3/Emu/Cell/lv2/sys_sm.cpp b/rpcs3/Emu/Cell/lv2/sys_sm.cpp index d4bf3009e9..8ccf2221dc 100644 --- a/rpcs3/Emu/Cell/lv2/sys_sm.cpp +++ b/rpcs3/Emu/Cell/lv2/sys_sm.cpp @@ -12,6 +12,11 @@ error_code sys_sm_get_params(vm::ptr a, vm::ptr b, vm::ptr c, vm::p { sys_sm.todo("sys_sm_get_params(a=*0x%x, b=*0x%x, c=*0x%x, d=*0x%x)", a, b, c, d); + if (a) *a = 0; else return CELL_EFAULT; + if (b) *b = 0; else return CELL_EFAULT; + if (c) *c = 0x200; else return CELL_EFAULT; + if (d) *d = 7; else return CELL_EFAULT; + return CELL_OK; }