GUI: Force Full Boot on first run of new version

This gets around users having crashes because they haven't configured the language in their BIOS
This commit is contained in:
refractionpcsx2 2020-12-06 18:07:51 +00:00
parent 56b0026160
commit f27baec6fb
3 changed files with 15 additions and 1 deletions

View File

@ -468,7 +468,8 @@ struct Pcsx2Config
MultitapPort1_Enabled:1,
ConsoleToStdio :1,
HostFs :1;
HostFs :1,
FullBootConfig :1;
BITFIELD_END
CpuOptions Cpu;

View File

@ -439,6 +439,7 @@ void Pcsx2Config::LoadSave( IniInterface& ini )
#endif
IniBitBool( ConsoleToStdio );
IniBitBool( HostFs );
IniBitBool( FullBootConfig );
IniBitBool( BackupSavestate );
IniBitBool( McdEnableEjection );

View File

@ -423,7 +423,19 @@ void MainEmuFrame::_DoBootCdvd()
return;
}
}
if (!g_Conf->EmuOptions.FullBootConfig && g_Conf->EmuOptions.UseBOOT2Injection)
{
g_Conf->EmuOptions.UseBOOT2Injection = false;
g_Conf->EmuOptions.FullBootConfig = true;
wxString message;
message.Printf(_("For the first run of this version of the emulator, you will be forced to boot to your BIOS. You are required to configure the BIOS language before proceeding. Once this has been done you can Fast Boot normally."));
Msgbox::Alert(message, _("BIOS Configuration"));
}
else
g_Conf->EmuOptions.FullBootConfig = true;
sApp.SysExecute(g_Conf->CdvdSource);
}