mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-24 14:49:53 -06:00
bypass first save command byte when it's zero. for Pokémon games.
This commit is contained in:
@ -471,6 +471,13 @@ void Write(u8 val, u32 hold)
|
|||||||
|
|
||||||
switch (CurCmd)
|
switch (CurCmd)
|
||||||
{
|
{
|
||||||
|
case 0x00:
|
||||||
|
// Pok<6F>mon carts have an IR transceiver thing, and send this
|
||||||
|
// to bypass it and access SRAM.
|
||||||
|
// TODO: design better
|
||||||
|
CurCmd = val;
|
||||||
|
break;
|
||||||
|
|
||||||
case 0x02:
|
case 0x02:
|
||||||
case 0x03:
|
case 0x03:
|
||||||
case 0x0A:
|
case 0x0A:
|
||||||
@ -495,8 +502,8 @@ void Write(u8 val, u32 hold)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
//if (DataPos==0)
|
if (DataPos==0)
|
||||||
// printf("unknown save SPI command %02X %08X\n", CurCmd);
|
printf("unknown save SPI command %02X %08X\n", CurCmd);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user