aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorMartin Kiewitz2010-08-24 09:05:54 +0000
committerMartin Kiewitz2010-08-24 09:05:54 +0000
commitd828b36d766af974c0ba3655730e2703ad588f5b (patch)
tree95bffa02c6240c07a31bc3ebeb74b2ce76924a44 /engines
parentd5d8434fd65dd201118ec54e1dd2ee2cbba653bd (diff)
downloadscummvm-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')
-rw-r--r--engines/sci/detection.cpp4
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);