IR thing isn't just for Pokémon

This commit is contained in:
Arisotura
2021-04-14 00:28:06 +02:00
parent 234cdc8e66
commit 77a0d83de7
2 changed files with 7 additions and 5 deletions

View File

@ -1708,7 +1708,7 @@ bool LoadROMCommon(u32 filelength, const char *sram, bool direct)
else if (CartID & 0x08000000)
Cart = new CartRetailNAND(CartROM, CartROMSize);
//else if (CartID & 0x00010000)
// Cart = new CartRetailPoke(CartROM, CartROMSize);
// Cart = new CartRetailIR(CartROM, CartROMSize);
else
Cart = new CartRetail(CartROM, CartROMSize);
@ -2045,6 +2045,8 @@ void WriteROMCnt(u32 val)
if (!(SPICnt & (1<<15))) return;
// all this junk would only really be useful if melonDS was interfaced to
// a DS cart reader
if (val & (1<<15))
{
u32 snum = (NDS::ExMemCnt[0]>>8)&0x8;

View File

@ -150,12 +150,12 @@ public:
u8 SPIWrite(u8 val, u32 pos, bool last);
};
// CartRetailPoke -- Pok<6F>mon cart (SPI IR device and SRAM)
class CartRetailPoke : public CartRetail
// CartRetailIR -- SPI IR device and SRAM
class CartRetailIR : public CartRetail
{
public:
CartRetailPoke(u8* rom, u32 len);
~CartRetailPoke();
CartRetailIR(u8* rom, u32 len);
~CartRetailIR();
void Reset();