mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-13 06:20:26 +02:00
Include the git version in savestates.
This way we can provide better warnings when it fails to load.
This commit is contained in:
1 parent
d586d7ddd2
commit
117ffaeb60
3 files changed
+19
-12
No files matched your search
+7
-6
@@ -111,6 +111,11 @@ namespace SaveState
|
||||
Enqueue(Operation(SAVESTATE_SAVE, filename, callback, cbUserData));
|
||||
}
|
||||
|
||||
void Verify(Callback callback, void *cbUserData)
|
||||
{
|
||||
Enqueue(Operation(SAVESTATE_VERIFY, std::string(""), callback, cbUserData));
|
||||
}
|
||||
|
||||
|
||||
// Slot utilities
|
||||
|
||||
@@ -148,9 +153,10 @@ namespace SaveState
|
||||
(*callback)(false, cbUserData);
|
||||
}
|
||||
|
||||
void HasSaveInSlot(int slot)
|
||||
bool HasSaveInSlot(int slot)
|
||||
{
|
||||
std::string fn = GenerateSaveSlotFilename(slot);
|
||||
return File::Exists(fn);
|
||||
}
|
||||
|
||||
bool operator < (const tm &t1, const tm &t2) {
|
||||
@@ -186,11 +192,6 @@ namespace SaveState
|
||||
}
|
||||
|
||||
|
||||
void Verify(Callback callback, void *cbUserData)
|
||||
{
|
||||
Enqueue(Operation(SAVESTATE_VERIFY, std::string(""), callback, cbUserData));
|
||||
}
|
||||
|
||||
std::vector<Operation> Flush()
|
||||
{
|
||||
std::lock_guard<std::recursive_mutex> guard(mutex);
|
||||
|
||||
Reference in new issue
Block a user