From a7b911f3d12556d2884d9a880dc4216846146dc1 Mon Sep 17 00:00:00 2001 From: danij Date: Wed, 26 Mar 2014 01:15:11 +0000 Subject: [PATCH] libcommon: Disabled manual caching of SavedSession metadata on write The case sensitivity mismatches between Info and Record currently result in the parsed metadata not matching that which we try to manually cache to avoid reopening of the .save package. Although the values are the same, their names are not. For now we'll let SavedSession cache it itself when called for. --- doomsday/plugins/common/src/gamesessionwriter.cpp | 2 +- doomsday/plugins/common/src/saveslots.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/doomsday/plugins/common/src/gamesessionwriter.cpp b/doomsday/plugins/common/src/gamesessionwriter.cpp index 076f62aaa7..ecc25cc848 100644 --- a/doomsday/plugins/common/src/gamesessionwriter.cpp +++ b/doomsday/plugins/common/src/gamesessionwriter.cpp @@ -111,6 +111,6 @@ void GameSessionWriter::write(SessionMetadata const &metadata) updated->as().populate(); SavedSession &session = updated->as(); - session.cacheMetadata(metadata); // Avoid immediately reopening the .save package. + //session.cacheMetadata(metadata); // Avoid immediately reopening the .save package. d->saveRepo().add(session); } diff --git a/doomsday/plugins/common/src/saveslots.cpp b/doomsday/plugins/common/src/saveslots.cpp index 337892404f..2f68d502e8 100644 --- a/doomsday/plugins/common/src/saveslots.cpp +++ b/doomsday/plugins/common/src/saveslots.cpp @@ -230,7 +230,7 @@ void SaveSlots::Slot::copySavedSession(Slot const &source) updated->as().populate(); SavedSession &session = updated->as(); - session.cacheMetadata(sourceSession.metadata()); // Avoid immediately opening the .save package. + //session.cacheMetadata(sourceSession.metadata()); // Avoid immediately opening the .save package. d->saveRepo().add(session); DENG2_ASSERT(d->session == &session); // Sanity check. }