SaveStateSelectorUI: Fix loading/saving without popup

This commit is contained in:
Connor McLaughlin
2022-07-31 17:33:03 +10:00
parent 20e2c39c0d
commit 3505ca26e0
5 changed files with 92 additions and 71 deletions

View File

@ -952,6 +952,7 @@ bool System::LoadState(const char* filename)
if (!stream)
return false;
Log_InfoPrintf("Loading state from '%s'...", filename);
Host::AddFormattedOSDMessage(5.0f, Host::TranslateString("OSDMessage", "Loading state from '%s'..."), filename);
SaveUndoLoadState();
@ -988,6 +989,8 @@ bool System::SaveState(const char* filename, bool backup_existing_save)
if (!stream)
return false;
Log_InfoPrintf("Saving state to '%s'...", filename);
const bool result = InternalSaveState(stream.get());
if (!result)
{