diff options
author | Einar Johan Trøan Sømåen | 2014-09-03 17:47:49 +0200 |
---|---|---|
committer | Einar Johan Trøan Sømåen | 2014-09-03 17:47:49 +0200 |
commit | 55c8b7a11a262e7bc2cfda87447c0c2c0ecf972b (patch) | |
tree | 79be014079c21a2e1112616f8d7559cb1440d673 /engines/wintermute/base/base_string_table.h | |
parent | 20d363c78558d46ce6669a1ad924068ad3d6e921 (diff) | |
download | scummvm-rg350-55c8b7a11a262e7bc2cfda87447c0c2c0ecf972b.tar.gz scummvm-rg350-55c8b7a11a262e7bc2cfda87447c0c2c0ecf972b.tar.bz2 scummvm-rg350-55c8b7a11a262e7bc2cfda87447c0c2c0ecf972b.zip |
WINTERMUTE: Save the names of any language files that are loaded. (Fix bug #6651)
This way, they will be reloaded in the same order when loading a save game. Old save games will
continue to show the bug, but new savegames will be consistent. A quick fix for old save games in
the white chamber, is to launch the game with the correct language BEFORE loading the save game.
This increases the save-game-version to 1.3.1ScummVM
Diffstat (limited to 'engines/wintermute/base/base_string_table.h')
-rw-r--r-- | engines/wintermute/base/base_string_table.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/wintermute/base/base_string_table.h b/engines/wintermute/base/base_string_table.h index 9e915a1ad9..cdcf11917d 100644 --- a/engines/wintermute/base/base_string_table.h +++ b/engines/wintermute/base/base_string_table.h @@ -35,6 +35,8 @@ namespace Wintermute { +class BasePersistenceManager; + class BaseStringTable : public BaseClass { public: bool loadFile(const char *filename, bool deleteAll = true); @@ -44,8 +46,10 @@ public: BaseStringTable(BaseGame *inGame); virtual ~BaseStringTable(); char *getKey(const char *str) const; + bool persist(BasePersistenceManager *persistMgr); private: Common::HashMap<Common::String, Common::String> _strings; + Common::Array<Common::String> _filenames; typedef Common::HashMap<Common::String, Common::String>::const_iterator StringsIter; }; |