HostInterface: Fix load state on boot not loading state

This commit is contained in:
Connor McLaughlin 2019-11-17 19:41:21 +10:00
parent 1f4dbd1060
commit 48e3683d20
1 changed files with 4 additions and 0 deletions

View File

@ -42,6 +42,10 @@ bool HostInterface::BootSystem(const char* filename, const char* state_filename)
m_paused = m_settings.start_paused; m_paused = m_settings.start_paused;
ConnectControllers(); ConnectControllers();
UpdateSpeedLimiterState(); UpdateSpeedLimiterState();
if (state_filename && !LoadState(state_filename))
return false;
return true; return true;
} }