mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-28 08:39:59 -06:00
* proper check for whether direct boot is required
* proof-of-concept cart insert/eject. it works!
This commit is contained in:
21
src/NDS.cpp
21
src/NDS.cpp
@ -353,6 +353,27 @@ void InitTimings()
|
||||
// handled later: GBA slot, wifi
|
||||
}
|
||||
|
||||
bool NeedsDirectBoot()
|
||||
{
|
||||
if (ConsoleType == 1)
|
||||
{
|
||||
// for now, DSi mode requires original BIOS/NAND
|
||||
return false;
|
||||
}
|
||||
else
|
||||
{
|
||||
// internal BIOS does not support direct boot
|
||||
if (!Platform::GetConfigBool(Platform::ExternalBIOSEnable))
|
||||
return true;
|
||||
|
||||
// DSi/3DS firmwares aren't bootable
|
||||
if (SPI_Firmware::GetFirmwareLength() == 0x20000)
|
||||
return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
void SetupDirectBoot(std::string romname)
|
||||
{
|
||||
if (ConsoleType == 1)
|
||||
|
Reference in New Issue
Block a user