System: Don't unconditionally apply TTY enable patch

Fixes Intelligent Qube hang.
This commit is contained in:
Connor McLaughlin 2022-12-06 13:25:28 +10:00
parent 7a362bf8f6
commit 7101b86d2f
1 changed files with 7 additions and 4 deletions

View File

@ -1208,10 +1208,13 @@ bool System::BootSystem(SystemBootParameters parameters)
// Enable tty by patching bios.
const BIOS::ImageInfo* bios_info = BIOS::GetInfoForImage(bios_image.value());
if (bios_info && bios_info->patch_compatible)
BIOS::PatchBIOSEnableTTY(Bus::g_bios, Bus::BIOS_SIZE);
else
Log_ErrorPrintf("Not patching TTY enable, as BIOS is not patch compatible.");
if (g_settings.bios_patch_tty_enable)
{
if (bios_info && bios_info->patch_compatible)
BIOS::PatchBIOSEnableTTY(Bus::g_bios, Bus::BIOS_SIZE);
else
Log_ErrorPrintf("Not patching TTY enable, as BIOS is not patch compatible.");
}
// Load EXE late after BIOS.
if (exe_boot && !LoadEXE(parameters.filename.c_str()))