From 507bfe2a699ec43427668cd7050cb187d6891324 Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Tue, 26 Jan 2016 02:40:19 +0100 Subject: CINE: Only request actual save slots in listSaves. --- engines/cine/detection.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'engines') 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); -- cgit v1.2.3