mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-01-29 00:33:01 +00:00
sys_game_board_storage_read(): Fix regression after #12637
This commit is contained in:
parent
cfdc852f03
commit
b9e20dc5c9
@ -1,6 +1,7 @@
|
||||
#include "stdafx.h"
|
||||
#include "Emu/Memory/vm_ptr.h"
|
||||
#include "Emu/Cell/ErrorCodes.h"
|
||||
#include "Emu/system_config.h"
|
||||
|
||||
#include "sys_game.h"
|
||||
|
||||
@ -15,11 +16,19 @@ error_code _sys_game_board_storage_read(vm::ptr<u8> buffer, u8 code)
|
||||
return CELL_EFAULT;
|
||||
}
|
||||
|
||||
be_t<u64> psid[2] = { +g_cfg.sys.console_psid_high, +g_cfg.sys.console_psid_low };
|
||||
u8 psid_bytes[16];
|
||||
memcpy(psid_bytes, psid, 16);
|
||||
|
||||
switch (code)
|
||||
{
|
||||
case 0xF0:
|
||||
{
|
||||
constexpr u8 response[16] = { 0x01, 0xFC, 0x43, 0x50, 0xA7, 0x9B, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF };
|
||||
u8 response[16] = { 0x01, 0xFC, 0x43, 0x50, 0xA7, 0x9B, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF };
|
||||
for (int i = 0; i < 16; i++)
|
||||
{
|
||||
response[i] ^= psid_bytes[i];
|
||||
}
|
||||
memcpy(buffer.get_ptr(), response, 16);
|
||||
break;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user