Skip to content

Commit

Permalink
Fix "Savestate Slot" string
Browse files Browse the repository at this point in the history
  • Loading branch information
LunaMoo committed Feb 25, 2024
1 parent 5398820 commit 47b19eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion UI/NativeApp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 47b19eb

Please sign in to comment.