Skip to content

Commit

Permalink
System: Fix message crash for missing CD image
Browse files Browse the repository at this point in the history
  • Loading branch information
ggrtk committed Mar 23, 2021
1 parent 4cd8c95 commit d10365c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/core/system.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit d10365c

Please sign in to comment.