Fix encoding for savestate slots
StrToWxStr is needed, otherwise the string will not be read as UTF-8.
This commit is contained in:
parent
2ddf180ee8
commit
9a0b70cc51
|
@ -465,7 +465,8 @@ wxString CFrame::GetMenuLabel(int Id)
|
||||||
case HK_LOAD_STATE_SLOT_9:
|
case HK_LOAD_STATE_SLOT_9:
|
||||||
case HK_LOAD_STATE_SLOT_10:
|
case HK_LOAD_STATE_SLOT_10:
|
||||||
Label = wxString::Format(_("Slot %i - %s"),
|
Label = wxString::Format(_("Slot %i - %s"),
|
||||||
Id - HK_LOAD_STATE_SLOT_1 + 1, State::GetInfoStringOfSlot(Id - HK_LOAD_STATE_SLOT_1 + 1).c_str());
|
Id - HK_LOAD_STATE_SLOT_1 + 1,
|
||||||
|
StrToWxStr(State::GetInfoStringOfSlot(Id - HK_LOAD_STATE_SLOT_1 + 1)));
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case HK_SAVE_STATE_SLOT_1:
|
case HK_SAVE_STATE_SLOT_1:
|
||||||
|
@ -479,7 +480,8 @@ wxString CFrame::GetMenuLabel(int Id)
|
||||||
case HK_SAVE_STATE_SLOT_9:
|
case HK_SAVE_STATE_SLOT_9:
|
||||||
case HK_SAVE_STATE_SLOT_10:
|
case HK_SAVE_STATE_SLOT_10:
|
||||||
Label = wxString::Format(_("Slot %i - %s"),
|
Label = wxString::Format(_("Slot %i - %s"),
|
||||||
Id - HK_SAVE_STATE_SLOT_1 + 1, State::GetInfoStringOfSlot(Id - HK_SAVE_STATE_SLOT_1 + 1).c_str());
|
Id - HK_SAVE_STATE_SLOT_1 + 1,
|
||||||
|
StrToWxStr(State::GetInfoStringOfSlot(Id - HK_SAVE_STATE_SLOT_1 + 1)));
|
||||||
break;
|
break;
|
||||||
case HK_SAVE_STATE_FILE:
|
case HK_SAVE_STATE_FILE:
|
||||||
Label = _("Save State...");
|
Label = _("Save State...");
|
||||||
|
@ -525,7 +527,8 @@ wxString CFrame::GetMenuLabel(int Id)
|
||||||
case HK_SELECT_STATE_SLOT_9:
|
case HK_SELECT_STATE_SLOT_9:
|
||||||
case HK_SELECT_STATE_SLOT_10:
|
case HK_SELECT_STATE_SLOT_10:
|
||||||
Label = wxString::Format(_("Select Slot %i - %s"),
|
Label = wxString::Format(_("Select Slot %i - %s"),
|
||||||
Id - HK_SELECT_STATE_SLOT_1 + 1, State::GetInfoStringOfSlot(Id - HK_SELECT_STATE_SLOT_1 + 1).c_str());
|
Id - HK_SELECT_STATE_SLOT_1 + 1,
|
||||||
|
StrToWxStr(State::GetInfoStringOfSlot(Id - HK_SELECT_STATE_SLOT_1 + 1)));
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue