Save the game title in savestates, if available.

So that the UI can show them.  Old savestates still load fine, just don't
have the title.
This commit is contained in:
Unknown W. Brackets committed 2016-01-23 12:56:36 -08:00
1 parent 8d41664bb1
commit 6a5096e546
4 files changed
+97 -54

No files matched your search

+2 -2
View File
@@ -541,7 +541,7 @@ namespace SaveState
{
case SAVESTATE_LOAD:
INFO_LOG(COMMON, "Loading state from %s", op.filename.c_str());
result = CChunkFileReader::Load(op.filename, REVISION, PPSSPP_GIT_VERSION, state, &reason);
result = CChunkFileReader::Load(op.filename, PPSSPP_GIT_VERSION, state, &reason);
if (result == CChunkFileReader::ERROR_NONE) {
osm.Show(sc->T("Loaded State"), 2.0);
callbackResult = true;
@@ -559,7 +559,7 @@ namespace SaveState
case SAVESTATE_SAVE:
INFO_LOG(COMMON, "Saving state to %s", op.filename.c_str());
result = CChunkFileReader::Save(op.filename, REVISION, PPSSPP_GIT_VERSION, state);
result = CChunkFileReader::Save(op.filename, g_paramSFO.GetValueString("TITLE"), PPSSPP_GIT_VERSION, state);
if (result == CChunkFileReader::ERROR_NONE) {
osm.Show(sc->T("Saved State"), 2.0);