diff options
Diffstat (limited to 'src/DSi.cpp')
| -rw-r--r-- | src/DSi.cpp | 10 | 
1 files changed, 9 insertions, 1 deletions
| diff --git a/src/DSi.cpp b/src/DSi.cpp index c1e87b9..db63440 100644 --- a/src/DSi.cpp +++ b/src/DSi.cpp @@ -159,7 +159,7 @@ void Reset()      SCFG_Clock7 = 0x0187;      SCFG_EXT[0] = 0x8307F100;      SCFG_EXT[1] = 0x93FFFB06; -    SCFG_MC = 0x0010;//0x0011; +    SCFG_MC = 0x0010 | (~((u32)NDSCart::CartInserted)&1);//0x0011;      SCFG_RST = 0;      DSi_DSP::SetRstLine(false); @@ -248,6 +248,14 @@ void DoSavestate(Savestate* file)      SDIO->DoSavestate(file);  } +void SetCartInserted(bool inserted) +{ +    if (inserted) +        SCFG_MC &= ~1; +    else +        SCFG_MC |= 1; +} +  void DecryptModcryptArea(u32 offset, u32 size, u8* iv)  {      AES_ctx ctx; |