mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-23 14:19:55 -06:00
IR thing isn't just for Pokémon
This commit is contained in:
@ -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;
|
||||
|
@ -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();
|
||||
|
||||
|
Reference in New Issue
Block a user