mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-29 01:03:41 +01:00
SaveState: Use latest version if initial missing.
This may be useful for debugging or if we decide on a buffer between versions.
This commit is contained in:
1 parent
006ef96b19
commit
16b11138b4
3 files changed
+11
-5
No files matched your search
+2
-2
@@ -268,7 +268,6 @@ namespace SaveState
|
||||
p.Do(saveStateInitialGitVersion);
|
||||
} else {
|
||||
saveStateGeneration = 1;
|
||||
saveStateInitialGitVersion = "v0.0.1";
|
||||
}
|
||||
|
||||
// Gotta do CoreTiming first since we'll restore into it.
|
||||
@@ -699,7 +698,8 @@ namespace SaveState
|
||||
{
|
||||
case SAVESTATE_LOAD:
|
||||
INFO_LOG(SAVESTATE, "Loading state from %s", op.filename.c_str());
|
||||
result = CChunkFileReader::Load(op.filename, PPSSPP_GIT_VERSION, state, &reason);
|
||||
// Use the state's latest version as a guess for saveStateInitialGitVersion.
|
||||
result = CChunkFileReader::Load(op.filename, &saveStateInitialGitVersion, state, &reason);
|
||||
if (result == CChunkFileReader::ERROR_NONE) {
|
||||
callbackMessage = sc->T("Loaded State");
|
||||
callbackResult = Status::SUCCESS;
|
||||
|
||||
Reference in new issue
Block a user