Skip to content

Commit

Permalink
System: Don't try to fast boot non-PS1 discs
Browse files Browse the repository at this point in the history
  • Loading branch information
stenzek committed Apr 21, 2024
1 parent 3fa2bd1 commit 3b8afb3
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/core/system.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1495,15 +1495,19 @@ 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);
s_was_fast_booted = true;
}
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.");
}
}

Expand Down

0 comments on commit 3b8afb3

Please sign in to comment.