mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-16 07:50:28 +02:00
Code cleanup for save state notification, add metadata field
This commit is contained in:
1 parent
87a74546bc
commit
231aefe476
9 files changed
+44
-48
No files matched your search
+2
-6
@@ -133,6 +133,7 @@
|
||||
#include "UI/OnScreenDisplay.h"
|
||||
#include "UI/RemoteISOScreen.h"
|
||||
#include "UI/Theme.h"
|
||||
#include "UI/PauseScreen.h"
|
||||
#include "UI/UIAtlas.h"
|
||||
|
||||
#if PPSSPP_PLATFORM(UWP)
|
||||
@@ -693,12 +694,7 @@ void NativeInit(int argc, const char *argv[], const char *savegame_dir, const ch
|
||||
g_BackgroundAudio.SFX().Init();
|
||||
|
||||
if (!boot_filename.empty() && stateToLoad.Valid()) {
|
||||
SaveState::Load(stateToLoad, -1, [](SaveState::Status status, std::string_view message) {
|
||||
if (!message.empty() && (!g_Config.bDumpFrames || !g_Config.bDumpVideoOutput)) {
|
||||
g_OSD.Show(status == SaveState::Status::SUCCESS ? OSDType::MESSAGE_SUCCESS : OSDType::MESSAGE_ERROR,
|
||||
message, status == SaveState::Status::SUCCESS ? 2.0 : 5.0);
|
||||
}
|
||||
});
|
||||
SaveState::Load(stateToLoad, -1, &ShowMessageAfterSaveStateAction);
|
||||
}
|
||||
|
||||
if (g_Config.bAchievementsEnable) {
|
||||
|
||||
Reference in new issue
Block a user