Decouple save states from UI.

It's the UI's job to decide how and what things are displayed, not Core's.
This also reduces reasons for linkage issues.
This commit is contained in:
Unknown W. Brackets committed 2016-05-27 21:25:05 -07:00
1 parent 2862253f12
commit 27d135d48a
7 files changed
+58 -35

No files matched your search

+4 -1
View File
@@ -400,7 +400,10 @@ namespace MainWindow {
g_Config.iInternalScreenRotation = rotation;
}
static void SaveStateActionFinished(bool result, void *userdata) {
static void SaveStateActionFinished(bool result, const std::string &message, void *userdata) {
if (!message.empty()) {
osm.Show(message, 2.0);
}
PostMessage(MainWindow::GetHWND(), WM_USER_SAVESTATE_FINISH, 0, 0);
}