mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-13 01:29:41 +01:00
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:
1 parent
2862253f12
commit
27d135d48a
7 files changed
+58
-35
No files matched your search
+7
-2
@@ -489,8 +489,13 @@ void NativeInit(int argc, const char *argv[], const char *savegame_dir, const ch
|
||||
}
|
||||
#endif
|
||||
|
||||
if (!boot_filename.empty() && stateToLoad != NULL)
|
||||
SaveState::Load(stateToLoad);
|
||||
if (!boot_filename.empty() && stateToLoad != NULL) {
|
||||
SaveState::Load(stateToLoad, [](bool status, const std::string &message, void *) {
|
||||
if (!message.empty()) {
|
||||
osm.Show(message, 2.0);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
screenManager = new ScreenManager();
|
||||
if (skipLogo) {
|
||||
|
||||
Reference in new issue
Block a user