From c96d075f978048e20f6a115cccacde16c17b7d7a Mon Sep 17 00:00:00 2001 From: skyjake Date: Sat, 8 Dec 2012 12:33:13 +0200 Subject: [PATCH] libdeng2: Serialized Config needs to use versioning The header is now included in the serialized Config. --- doomsday/libdeng2/src/core/config.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doomsday/libdeng2/src/core/config.cpp b/doomsday/libdeng2/src/core/config.cpp index 8ce94a9b02..6d179bb7c3 100644 --- a/doomsday/libdeng2/src/core/config.cpp +++ b/doomsday/libdeng2/src/core/config.cpp @@ -84,7 +84,7 @@ void Config::read() { // If we already have a saved copy of the config, read it. Archive const &persist = App::persistentData(); - Reader(persist.entryBlock(d->persistentPath)) >> names(); + Reader(persist.entryBlock(d->persistentPath)).withHeader() >> names(); LOG_DEBUG("Found serialized Config:\n") << names(); @@ -114,7 +114,7 @@ void Config::read() } catch(Archive::NotFoundError const &) { - // It is missing if the config hasn't been written yet. + // It is missing from persist.pack if the config hasn't been written yet. shouldRunScript = true; } catch(Error const &error) @@ -140,7 +140,7 @@ void Config::read() void Config::write() { - Writer(App::persistentData().entryBlock(d->persistentPath)) << names(); + Writer(App::persistentData().entryBlock(d->persistentPath)).withHeader() << names(); } Record &Config::names()