Plugin-Function: Add OSD for incomplete/corrupt savestates

Previously, the OSD neglected to mention any sort of message when the savestate load is failed, the following patch now also prints a message on OSD when detecting such cases of loading an incomplete/corrupt savestate.
This commit is contained in:
Akash 2017-02-24 16:06:32 +05:30 committed by Gregory Hainaut
parent 489a89ae8b
commit 8f02052232
1 changed files with 2 additions and 0 deletions

View File

@ -732,6 +732,7 @@ wxString Exception::SaveStateLoadError::FormatDiagnosticMessage() const
{
FastFormatUnicode retval;
retval.Write("Savestate is corrupt or incomplete!\n");
OSDlog(Color_Red, false, "Error: Savestate is corrupt or incomplete!");
_formatDiagMsg(retval);
return retval;
}
@ -741,6 +742,7 @@ wxString Exception::SaveStateLoadError::FormatDisplayMessage() const
FastFormatUnicode retval;
retval.Write(_("The savestate cannot be loaded, as it appears to be corrupt or incomplete."));
retval.Write("\n");
OSDlog(Color_Red, false, "Error: The savestate cannot be loaded, as it appears to be corrupt or incomplete.");
_formatUserMsg(retval);
return retval;
}