From 47b19eb24bf742272dba1f1c86ee5fae72af08ac Mon Sep 17 00:00:00 2001 From: LunaMoo Date: Sun, 25 Feb 2024 10:26:13 +0100 Subject: [PATCH 1/2] Fix "Savestate Slot" string --- UI/NativeApp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UI/NativeApp.cpp b/UI/NativeApp.cpp index 0f3a3ffe0394..e69aa35c880c 100644 --- a/UI/NativeApp.cpp +++ b/UI/NativeApp.cpp @@ -1200,7 +1200,7 @@ bool HandleGlobalMessage(UIMessage message, const std::string &value) { return true; } else if (message == UIMessage::SAVESTATE_DISPLAY_SLOT) { auto sy = GetI18NCategory(I18NCat::SYSTEM); - std::string msg = StringFromFormat("%s: %d", sy->T("Savestate Slot"), SaveState::GetCurrentSlot() + 1); + std::string msg = StringFromFormat("%s: %d", std::string(sy->T("Savestate Slot")), SaveState::GetCurrentSlot() + 1); // Show for the same duration as the preview. g_OSD.Show(OSDType::MESSAGE_INFO, msg, 2.0f, "savestate_slot"); return true; From 90fd476acf61cfcd5f193ad704f00c308571fb1a Mon Sep 17 00:00:00 2001 From: LunaMoo Date: Sun, 25 Feb 2024 11:17:10 +0100 Subject: [PATCH 2/2] Change based on feedback --- UI/NativeApp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UI/NativeApp.cpp b/UI/NativeApp.cpp index e69aa35c880c..d25c9d493692 100644 --- a/UI/NativeApp.cpp +++ b/UI/NativeApp.cpp @@ -1200,7 +1200,7 @@ bool HandleGlobalMessage(UIMessage message, const std::string &value) { return true; } else if (message == UIMessage::SAVESTATE_DISPLAY_SLOT) { auto sy = GetI18NCategory(I18NCat::SYSTEM); - std::string msg = StringFromFormat("%s: %d", std::string(sy->T("Savestate Slot")), SaveState::GetCurrentSlot() + 1); + std::string msg = StringFromFormat("%s: %d", std::string(sy->T("Savestate Slot")).c_str(), SaveState::GetCurrentSlot() + 1); // Show for the same duration as the preview. g_OSD.Show(OSDType::MESSAGE_INFO, msg, 2.0f, "savestate_slot"); return true;