diff options
author | Johannes Schickel | 2016-01-26 02:40:19 +0100 |
---|---|---|
committer | Johannes Schickel | 2016-01-26 16:35:30 +0100 |
commit | 507bfe2a699ec43427668cd7050cb187d6891324 (patch) | |
tree | a07ebb1072136b85bb5686621abe1defd6c8b8d2 /engines/cine | |
parent | 1e64b4dd53900da21bef55f90124fdb94b1441ef (diff) | |
download | scummvm-rg350-507bfe2a699ec43427668cd7050cb187d6891324.tar.gz scummvm-rg350-507bfe2a699ec43427668cd7050cb187d6891324.tar.bz2 scummvm-rg350-507bfe2a699ec43427668cd7050cb187d6891324.zip |
CINE: Only request actual save slots in listSaves.
Diffstat (limited to 'engines/cine')
-rw-r--r-- | engines/cine/detection.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/engines/cine/detection.cpp b/engines/cine/detection.cpp index 40e79f96ac..dac7add16b 100644 --- a/engines/cine/detection.cpp +++ b/engines/cine/detection.cpp @@ -135,7 +135,7 @@ SaveStateList CineMetaEngine::listSaves(const char *target) const { SaveStateList saveList; Common::String pattern = target; - pattern += ".?"; + pattern += ".#"; Common::StringArray filenames = saveFileMan->listSavefiles(pattern); sort(filenames.begin(), filenames.end()); Common::StringArray::const_iterator file; @@ -156,10 +156,6 @@ SaveStateList CineMetaEngine::listSaves(const char *target) const { CommandeType saveDesc; for (file = filenames.begin(); file != filenames.end(); ++file) { - // Jump over savegame files that don't end with a digit (e.g. "fw.3" is ok, "fw.a" is not). - if (!Common::isDigit(file->lastChar())) - continue; - // Obtain the last digit of the filename, since they correspond to the save slot int slotNum = atoi(file->c_str() + file->size() - 1); |