mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-25 07:10:00 -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)
|
else if (CartID & 0x08000000)
|
||||||
Cart = new CartRetailNAND(CartROM, CartROMSize);
|
Cart = new CartRetailNAND(CartROM, CartROMSize);
|
||||||
//else if (CartID & 0x00010000)
|
//else if (CartID & 0x00010000)
|
||||||
// Cart = new CartRetailPoke(CartROM, CartROMSize);
|
// Cart = new CartRetailIR(CartROM, CartROMSize);
|
||||||
else
|
else
|
||||||
Cart = new CartRetail(CartROM, CartROMSize);
|
Cart = new CartRetail(CartROM, CartROMSize);
|
||||||
|
|
||||||
@ -2045,6 +2045,8 @@ void WriteROMCnt(u32 val)
|
|||||||
|
|
||||||
if (!(SPICnt & (1<<15))) return;
|
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))
|
if (val & (1<<15))
|
||||||
{
|
{
|
||||||
u32 snum = (NDS::ExMemCnt[0]>>8)&0x8;
|
u32 snum = (NDS::ExMemCnt[0]>>8)&0x8;
|
||||||
|
@ -150,12 +150,12 @@ public:
|
|||||||
u8 SPIWrite(u8 val, u32 pos, bool last);
|
u8 SPIWrite(u8 val, u32 pos, bool last);
|
||||||
};
|
};
|
||||||
|
|
||||||
// CartRetailPoke -- Pok<6F>mon cart (SPI IR device and SRAM)
|
// CartRetailIR -- SPI IR device and SRAM
|
||||||
class CartRetailPoke : public CartRetail
|
class CartRetailIR : public CartRetail
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
CartRetailPoke(u8* rom, u32 len);
|
CartRetailIR(u8* rom, u32 len);
|
||||||
~CartRetailPoke();
|
~CartRetailIR();
|
||||||
|
|
||||||
void Reset();
|
void Reset();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user