* proper check for whether direct boot is required

* proof-of-concept cart insert/eject. it works!
This commit is contained in:
Arisotura
2022-01-02 15:09:09 +01:00
parent 56407d5516
commit 18c7629451
8 changed files with 108 additions and 101 deletions

View File

@ -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)