mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-06-28 01:49:42 -06:00
fix SCFG_MC cartridge inserted bit
This commit is contained in:
10
src/DSi.cpp
10
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;
|
||||
|
Reference in New Issue
Block a user