diff options
author | Martin Kiewitz | 2010-08-24 09:05:54 +0000 |
---|---|---|
committer | Martin Kiewitz | 2010-08-24 09:05:54 +0000 |
commit | d828b36d766af974c0ba3655730e2703ad588f5b (patch) | |
tree | 95bffa02c6240c07a31bc3ebeb74b2ce76924a44 /engines/sci | |
parent | d5d8434fd65dd201118ec54e1dd2ee2cbba653bd (diff) | |
download | scummvm-rg350-d828b36d766af974c0ba3655730e2703ad588f5b.tar.gz scummvm-rg350-d828b36d766af974c0ba3655730e2703ad588f5b.tar.bz2 scummvm-rg350-d828b36d766af974c0ba3655730e2703ad588f5b.zip |
SCI: changing maximum slots from 0-999 to 0-99
svn-id: r52319
Diffstat (limited to 'engines/sci')
-rw-r--r-- | engines/sci/detection.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/sci/detection.cpp b/engines/sci/detection.cpp index 3b95434182..9912704790 100644 --- a/engines/sci/detection.cpp +++ b/engines/sci/detection.cpp @@ -655,7 +655,7 @@ SaveStateList SciMetaEngine::listSaves(const char *target) const { // Obtain the last 3 digits of the filename, since they correspond to the save slot slotNum = atoi(file->c_str() + file->size() - 3); - if (slotNum >= 0 && slotNum < 999) { + if (slotNum >= 0 && slotNum <= 99) { Common::InSaveFile *in = saveFileMan->openForLoading(*file); if (in) { SavegameMetadata meta; @@ -722,7 +722,7 @@ SaveStateDescriptor SciMetaEngine::querySaveMetaInfos(const char *target, int sl return SaveStateDescriptor(); } -int SciMetaEngine::getMaximumSaveSlot() const { return 999; } +int SciMetaEngine::getMaximumSaveSlot() const { return 99; } void SciMetaEngine::removeSaveState(const char *target, int slot) const { Common::String fileName = Common::String::printf("%s.%03d", target, slot); |