mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-22 02:32:36 +01:00
Update sys_game_board_storage_read()
This commit is contained in:
parent
a6dfc3be2f
commit
d311b4bd53
@ -18,26 +18,12 @@ error_code _sys_game_board_storage_read(vm::ptr<u8> buffer, u8 code)
|
||||
|
||||
be_t<u64> psid[2] = { +g_cfg.sys.console_psid_high, +g_cfg.sys.console_psid_low };
|
||||
u8* psid_bytes = reinterpret_cast<u8*>(psid);
|
||||
|
||||
switch (code)
|
||||
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++)
|
||||
{
|
||||
case 0xC0:
|
||||
case 0xF0:
|
||||
{
|
||||
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;
|
||||
}
|
||||
default:
|
||||
{
|
||||
sys_game.error("sys_game_board_storage_read(): Unknown code 0x%02x", code);
|
||||
break;
|
||||
}
|
||||
response[i] ^= psid_bytes[i];
|
||||
}
|
||||
memcpy(buffer.get_ptr(), response, 16);
|
||||
|
||||
return CELL_OK;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user