From d828b36d766af974c0ba3655730e2703ad588f5b Mon Sep 17 00:00:00 2001 From: Martin Kiewitz Date: Tue, 24 Aug 2010 09:05:54 +0000 Subject: SCI: changing maximum slots from 0-999 to 0-99 svn-id: r52319 --- engines/sci/detection.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engines/sci/detection.cpp') 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); -- cgit v1.2.3