diff options
author | RichieSams | 2013-09-17 11:03:49 -0500 |
---|---|---|
committer | RichieSams | 2013-09-17 11:03:49 -0500 |
commit | 6664f31ed24b2d8b384221faffdeb6eda0f69835 (patch) | |
tree | 142e9f5b8344e9914a39b62fc94c6ea8d79aab41 | |
parent | 5ec472ae2fc5d391714617457ec01c24d67057c2 (diff) | |
download | scummvm-rg350-6664f31ed24b2d8b384221faffdeb6eda0f69835.tar.gz scummvm-rg350-6664f31ed24b2d8b384221faffdeb6eda0f69835.tar.bz2 scummvm-rg350-6664f31ed24b2d8b384221faffdeb6eda0f69835.zip |
ZVISION: Convert the current save version to a const
-rw-r--r-- | engines/zvision/save_manager.cpp | 4 | ||||
-rw-r--r-- | engines/zvision/save_manager.h | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/engines/zvision/save_manager.cpp b/engines/zvision/save_manager.cpp index ff6e1c36fa..cf2d96575e 100644 --- a/engines/zvision/save_manager.cpp +++ b/engines/zvision/save_manager.cpp @@ -45,7 +45,7 @@ void SaveManager::saveGame(uint slot, const Common::String &saveName) { file->writeUint32BE(SAVEGAME_ID); // Write version - file->writeByte(1); + file->writeByte(SAVE_VERSION); // Write savegame name file->writeString(saveName); @@ -84,7 +84,7 @@ void SaveManager::autoSave() { file->writeUint32BE(SAVEGAME_ID); // Version - file->writeByte(1); + file->writeByte(SAVE_VERSION); file->writeString("auto"); file->writeByte(0); diff --git a/engines/zvision/save_manager.h b/engines/zvision/save_manager.h index 864f176e10..8d0ebc75af 100644 --- a/engines/zvision/save_manager.h +++ b/engines/zvision/save_manager.h @@ -51,6 +51,10 @@ private: ZVision *_engine; static const uint32 SAVEGAME_ID; + enum { + SAVE_VERSION = 1 + }; + public: void autoSave(); void saveGame(uint slot, const Common::String &saveName); |