Trigger save slot display from UI code.

Core shouldn't be calling UI code.
This commit is contained in:
Unknown W. Brackets 2016-05-27 20:53:20 -07:00
parent afdd01571c
commit e6cf296d1a
4 changed files with 8 additions and 3 deletions

View file

@ -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) {