From c996be321ca103c336fee333fdd03b134f1502fe Mon Sep 17 00:00:00 2001 From: brian218 Date: Mon, 26 Sep 2022 20:04:54 +0800 Subject: [PATCH] sys_game_board_storage_read(): Add more known code & Improve byte casting --- rpcs3/Emu/Cell/lv2/sys_game.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rpcs3/Emu/Cell/lv2/sys_game.cpp b/rpcs3/Emu/Cell/lv2/sys_game.cpp index 028d76218b..b68aac5667 100644 --- a/rpcs3/Emu/Cell/lv2/sys_game.cpp +++ b/rpcs3/Emu/Cell/lv2/sys_game.cpp @@ -17,11 +17,11 @@ error_code _sys_game_board_storage_read(vm::ptr buffer, u8 code) } be_t psid[2] = { +g_cfg.sys.console_psid_high, +g_cfg.sys.console_psid_low }; - u8 psid_bytes[16]; - memcpy(psid_bytes, psid, 16); + u8* psid_bytes = reinterpret_cast(psid); switch (code) { + case 0xC0: case 0xF0: { u8 response[16] = { 0x01, 0xFC, 0x43, 0x50, 0xA7, 0x9B, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF };