System: Prevent save states while memory cards are being saved

This commit is contained in:
Stenzek
2024-05-25 17:23:18 +10:00
parent 8e5781266a
commit 328a3cd7af
3 changed files with 10 additions and 4 deletions

View File

@ -110,8 +110,8 @@ static void HotkeySaveStateSlot(bool global, s32 slot)
Error error;
if (!System::SaveState(path.c_str(), &error, g_settings.create_save_state_backups))
{
Host::AddKeyedOSDMessage(
"SaveState",
Host::AddIconOSDMessage(
"SaveState", ICON_FA_EXCLAMATION_TRIANGLE,
fmt::format(TRANSLATE_FS("OSDMessage", "Failed to save state to slot {0}:\n{1}"), slot, error.GetDescription()),
Host::OSD_ERROR_DURATION);
}