Skip to content

Commit

Permalink
CINE: Only request actual save slots in listSaves.
Browse files Browse the repository at this point in the history
  • Loading branch information
Johannes Schickel committed Jan 26, 2016
1 parent 1e64b4d commit 507bfe2
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions engines/cine/detection.cpp
Expand Up @@ -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;
Expand All @@ -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);

Expand Down

0 comments on commit 507bfe2

Please sign in to comment.