diff --git a/src/NDSCart.cpp b/src/NDSCart.cpp index d479d6dd..688cd2e4 100644 --- a/src/NDSCart.cpp +++ b/src/NDSCart.cpp @@ -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; diff --git a/src/NDSCart.h b/src/NDSCart.h index b882c43b..e57ed946 100644 --- a/src/NDSCart.h +++ b/src/NDSCart.h @@ -150,12 +150,12 @@ public: u8 SPIWrite(u8 val, u32 pos, bool last); }; -// CartRetailPoke -- Poké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();