mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-10 21:16:24 +02:00
Switch to std::function for savestate callbacks.
This commit is contained in:
1 parent
71c9804ffd
commit
3f0b759746
4 files changed
+15
-14
No files matched your search
+3
-3
@@ -319,7 +319,7 @@ namespace SaveState
|
||||
I18NCategory *s = GetI18NCategory("Screen");
|
||||
osm.Show("Failed to load state. Error in the file system.", 2.0);
|
||||
if (callback)
|
||||
(*callback)(false, cbUserData);
|
||||
callback(false, cbUserData);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -327,12 +327,12 @@ namespace SaveState
|
||||
{
|
||||
std::string fn = GenerateSaveSlotFilename(slot, STATE_EXTENSION);
|
||||
if (!fn.empty()) {
|
||||
Save(fn, callback, cbUserData);
|
||||
Save(fn + ".tmp", callback, cbUserData);
|
||||
} else {
|
||||
I18NCategory *s = GetI18NCategory("Screen");
|
||||
osm.Show("Failed to save state. Error in the file system.", 2.0);
|
||||
if (callback)
|
||||
(*callback)(false, cbUserData);
|
||||
callback(false, cbUserData);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user