bypass first save command byte when it's zero. for Pokémon games.
This commit is contained in:
parent
8bbcc83771
commit
84664a6ded
|
@ -471,6 +471,13 @@ void Write(u8 val, u32 hold)
|
||||||
|
|
||||||
switch (CurCmd)
|
switch (CurCmd)
|
||||||
{
|
{
|
||||||
|
case 0x00:
|
||||||
|
// Poké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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue