aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Schickel2016-01-26 02:41:51 +0100
committerJohannes Schickel2016-01-26 16:35:30 +0100
commitb2db9434de27f9740c911421f5edd3554fbc7ef1 (patch)
treef0bfbc5d79a791938c333f9ec3d258bbf9848a46
parent4d7dda0b5cb9515d71c58393ff446534f7bb608b (diff)
downloadscummvm-rg350-b2db9434de27f9740c911421f5edd3554fbc7ef1.tar.gz
scummvm-rg350-b2db9434de27f9740c911421f5edd3554fbc7ef1.tar.bz2
scummvm-rg350-b2db9434de27f9740c911421f5edd3554fbc7ef1.zip
LAB: Only request actual save slots in listSaves.
-rw-r--r--engines/lab/detection.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/lab/detection.cpp b/engines/lab/detection.cpp
index eedf09fe30..d01dff2843 100644
--- a/engines/lab/detection.cpp
+++ b/engines/lab/detection.cpp
@@ -165,7 +165,7 @@ SaveStateList LabMetaEngine::listSaves(const char *target) const {
Common::SaveFileManager *saveFileMan = g_system->getSavefileManager();
Lab::SaveGameHeader header;
Common::String pattern = target;
- pattern += ".???";
+ pattern += ".###";
Common::StringArray filenames;
filenames = saveFileMan->listSavefiles(pattern.c_str());
@@ -202,7 +202,7 @@ void LabMetaEngine::removeSaveState(const char *target, int slot) const {
Common::StringArray filenames;
Common::String pattern = target;
- pattern += ".???";
+ pattern += ".###";
filenames = saveFileMan->listSavefiles(pattern.c_str());
Common::sort(filenames.begin(), filenames.end()); // Sort (hopefully ensuring we are sorted numerically..)