MCPcopy Create free account
hub / github.com/PCSX2/pcsx2 / SaveState_ReportSaveErrorOSD

Function SaveState_ReportSaveErrorOSD

pcsx2/SaveState.cpp:1259–1270  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1257}
1258
1259void SaveState_ReportSaveErrorOSD(const std::string& message, std::optional<s32> slot)
1260{
1261 std::string full_message;
1262 if (slot.has_value())
1263 full_message = fmt::format(
1264 TRANSLATE_FS("SaveState", "Failed to save state to slot {}: {}"), *slot, message);
1265 else
1266 full_message = fmt::format(TRANSLATE_FS("SaveState", "Failed to save state: {}"), message);
1267
1268 Host::AddIconOSDMessage("SaveState", ICON_FA_TRIANGLE_EXCLAMATION,
1269 full_message, Host::OSD_WARNING_DURATION);
1270}

Callers 4

reportStateSaveErrorMethod · 0.85
ParseCommandMethod · 0.85
createMethod · 0.85
ReportStateSaveErrorMethod · 0.85

Calls 1

formatFunction · 0.50

Tested by

no test coverage detected