Merge pull request #1859 from ggrtk/fix-loadstate-message

System: Fix message crash for missing CD image
This commit is contained in:
Connor McLaughlin 2021-03-25 13:33:39 +10:00 committed by GitHub
commit a3b0f7b2dd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1234,9 +1234,8 @@ bool DoLoadState(ByteStream* state, bool force_software_renderer, bool update_di
else
{
g_host_interface->ReportFormattedError(
g_host_interface->TranslateString("System", "Failed to open CD image from save state '%s': %s.",
error.GetCodeAndMessage().GetCharArray()),
media_filename.c_str());
g_host_interface->TranslateString("System", "Failed to open CD image '%s' used by save state: %s."),
media_filename.c_str(), error.GetCodeAndMessage().GetCharArray());
return false;
}
}