System: Don't try to fast boot non-PS1 discs

This commit is contained in:
Stenzek 2024-04-22 01:44:04 +10:00
parent 3fa2bd1d3a
commit 3b8afb39f6
No known key found for this signature in database

View file

@ -1495,7 +1495,11 @@ bool System::BootSystem(SystemBootParameters parameters, Error* error)
if (CDROM::HasMedia() && (parameters.override_fast_boot.has_value() ? parameters.override_fast_boot.value() :
g_settings.bios_patch_fast_boot))
{
if (s_bios_image_info && s_bios_image_info->patch_compatible)
if (CDROM::IsMediaPS1Disc())
{
Log_ErrorPrint("Not fast booting non-PS1 disc.");
}
else if (s_bios_image_info && s_bios_image_info->patch_compatible)
{
// TODO: Fast boot without patches...
BIOS::PatchBIOSFastBoot(Bus::g_bios, Bus::BIOS_SIZE);
@ -1503,7 +1507,7 @@ bool System::BootSystem(SystemBootParameters parameters, Error* error)
}
else
{
Log_ErrorPrintf("Not patching fast boot, as BIOS is not patch compatible.");
Log_ErrorPrint("Not patching fast boot, as BIOS is not patch compatible.");
}
}