diff options
author | Joseph-Eugene Winzer | 2017-08-30 22:36:52 +0200 |
---|---|---|
committer | Thierry Crozat | 2018-01-23 02:01:00 +0000 |
commit | ea60d1513e60895d5604a61663a22093e3fc4194 (patch) | |
tree | f206df46b8413014aae5d8926bfc95ade9add5f0 | |
parent | 6e33819217c0c2fac58c4a85cc64819c1295e43c (diff) | |
download | scummvm-rg350-ea60d1513e60895d5604a61663a22093e3fc4194.tar.gz scummvm-rg350-ea60d1513e60895d5604a61663a22093e3fc4194.tar.bz2 scummvm-rg350-ea60d1513e60895d5604a61663a22093e3fc4194.zip |
SUPERNOVA: Raises save game limit to 99
-rw-r--r-- | engines/supernova/detection.cpp | 6 | ||||
-rw-r--r-- | engines/supernova/supernova.cpp | 8 |
2 files changed, 7 insertions, 7 deletions
diff --git a/engines/supernova/detection.cpp b/engines/supernova/detection.cpp index 3e1082c7b0..5770871406 100644 --- a/engines/supernova/detection.cpp +++ b/engines/supernova/detection.cpp @@ -81,7 +81,7 @@ public: virtual SaveStateList listSaves(const char *target) const; virtual void removeSaveState(const char *target, int slot) const; virtual int getMaximumSaveSlot() const { - return 10; + return 99; } }; @@ -108,7 +108,7 @@ bool SupernovaMetaEngine::createInstance(OSystem *syst, Engine **engine, const A SaveStateList SupernovaMetaEngine::listSaves(const char *target) const { Common::StringArray filenames; - Common::String pattern("msn_save.##"); + Common::String pattern("msn_save.###"); filenames = g_system->getSavefileManager()->listSavefiles(pattern); @@ -134,7 +134,7 @@ SaveStateList SupernovaMetaEngine::listSaves(const char *target) const { } void SupernovaMetaEngine::removeSaveState(const char *target, int slot) const { - Common::String filename = Common::String::format("msn_save.%02d", slot); + Common::String filename = Common::String::format("msn_save.%03d", slot); g_system->getSavefileManager()->removeSavefile(filename); } diff --git a/engines/supernova/supernova.cpp b/engines/supernova/supernova.cpp index 05e4883e5f..39f00e8b26 100644 --- a/engines/supernova/supernova.cpp +++ b/engines/supernova/supernova.cpp @@ -810,10 +810,10 @@ bool SupernovaEngine::loadGame(int slot) { int loadGameSlot = dialog->runModalWithCurrentTarget(); delete dialog; - if (loadGameSlot < 0 || loadGameSlot > 10) + if (loadGameSlot < 0) return false; - Common::String filename = Common::String::format("msn_save.%02d", loadGameSlot); + Common::String filename = Common::String::format("msn_save.%03d", loadGameSlot); // Common::InSaveFile *savefile = _saveFileMan->openForLoading(filename); Common::InSaveFile *savefile = _saveFileMan->openRawFile(filename); if (!savefile) @@ -836,10 +836,10 @@ bool SupernovaEngine::saveGame(int slot, const Common::String &description) { Common::String saveGameDescription = dialog->getResultString(); delete dialog; - if (saveGameSlot < 0 || saveGameSlot > 10) + if (saveGameSlot < 0) return false; - Common::String filename = Common::String::format("msn_save.%02d", saveGameSlot); + Common::String filename = Common::String::format("msn_save.%03d", saveGameSlot); Common::OutSaveFile *savefile = _saveFileMan->openForSaving(filename, false); if (!savefile) return false; |