System: Fix broken missing-SBI detection

This commit is contained in:
Connor McLaughlin 2022-12-06 18:09:40 +10:00
parent 7101b86d2f
commit e27f259bf8
1 changed files with 4 additions and 3 deletions

View File

@ -1153,17 +1153,18 @@ bool System::BootSystem(SystemBootParameters parameters)
return false;
}
// Update running game, this will apply settings as well.
UpdateRunningGame(media ? media->GetFileName().c_str() : parameters.filename.c_str(), media.get(), true);
// Check for SBI.
if (!CheckForSBIFile(media.get()))
{
s_state = State::Shutdown;
ClearRunningGame();
Host::OnSystemDestroyed();
return false;
}
// Update running game, this will apply settings as well.
UpdateRunningGame(media ? media->GetFileName().c_str() : parameters.filename.c_str(), media.get(), true);
#ifdef WITH_CHEEVOS
// Check for resuming with hardcore mode.
if (!parameters.save_state.empty() && Achievements::ChallengeModeActive() &&