Trigger save slot display from UI code.
Core shouldn't be calling UI code.
This commit is contained in:
parent
afdd01571c
commit
e6cf296d1a
4 changed files with 8 additions and 3 deletions
|
@ -766,6 +766,11 @@ void HandleGlobalMessage(const std::string &msg, const std::string &value) {
|
|||
g_Config.sNickName = inputboxValue[1];
|
||||
inputboxValue.clear();
|
||||
}
|
||||
if (msg == "savestate_displayslot") {
|
||||
I18NCategory *sy = GetI18NCategory("System");
|
||||
std::string msg = StringFromFormat("%s: %d", sy->T("Savestate Slot"), SaveState::GetCurrentSlot() + 1);
|
||||
osm.Show(msg);
|
||||
}
|
||||
}
|
||||
|
||||
void NativeUpdate(InputState &input) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue