diff options
author | Filippos Karapetis | 2014-12-26 03:58:37 +0200 |
---|---|---|
committer | Filippos Karapetis | 2014-12-26 03:58:37 +0200 |
commit | 00a252fdc561b31379ddc5f568121b8040986add (patch) | |
tree | b1e27a35e13d08fec9ce194398bdcd5026527758 /engines | |
parent | 3661bc4cf13ac9bb27e60969b4195acc82fee6c5 (diff) | |
download | scummvm-rg350-00a252fdc561b31379ddc5f568121b8040986add.tar.gz scummvm-rg350-00a252fdc561b31379ddc5f568121b8040986add.tar.bz2 scummvm-rg350-00a252fdc561b31379ddc5f568121b8040986add.zip |
ZVISION: Slight cleanup
Diffstat (limited to 'engines')
-rw-r--r-- | engines/zvision/core/save_manager.cpp | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/engines/zvision/core/save_manager.cpp b/engines/zvision/core/save_manager.cpp index 20bd39fde5..b45742154d 100644 --- a/engines/zvision/core/save_manager.cpp +++ b/engines/zvision/core/save_manager.cpp @@ -78,9 +78,6 @@ bool SaveManager::scummVMSaveLoadDialog(bool isSave) { } void SaveManager::saveGame(uint slot, const Common::String &saveName) { - // The games only support 20 slots - //assert(slot <= 1 && slot <= 20); - Common::SaveFileManager *saveFileManager = g_system->getSavefileManager(); Common::OutSaveFile *file = saveFileManager->openForSaving(_engine->generateSaveFileName(slot)); @@ -124,7 +121,6 @@ void SaveManager::autoSave() { } void SaveManager::writeSaveGameHeader(Common::OutSaveFile *file, const Common::String &saveName) { - file->writeUint32BE(SAVEGAME_ID); // Write version @@ -148,9 +144,6 @@ void SaveManager::writeSaveGameHeader(Common::OutSaveFile *file, const Common::S } Common::Error SaveManager::loadGame(uint slot) { - // The games only support 20 slots - //assert(slot <= 1 && slot <= 20); - Common::SeekableReadStream *saveFile = getSlotFile(slot); if (saveFile == 0) { return Common::kPathDoesNotExist; @@ -226,7 +219,13 @@ bool SaveManager::readSaveGameHeader(Common::InSaveFile *in, SaveGameHeader &hea // Check that the save version isn't newer than this binary if (header.version > SAVE_VERSION) { uint tempVersion = header.version; - GUI::MessageDialog dialog(Common::String::format("This save file uses version %u, but this engine only supports up to version %d. You will need an updated version of the engine to use this save file.", tempVersion, SAVE_VERSION), "OK"); + GUI::MessageDialog dialog( + Common::String::format( + "This save file uses version %u, but this engine only " + "supports up to version %d. You will need an updated version " + "of the engine to use this save file.", tempVersion, SAVE_VERSION + ), + "OK"); dialog.runModal(); } |