diff options
author | Johannes Schickel | 2016-01-26 02:41:44 +0100 |
---|---|---|
committer | Johannes Schickel | 2016-01-26 16:35:30 +0100 |
commit | 4d7dda0b5cb9515d71c58393ff446534f7bb608b (patch) | |
tree | ba81b87bf26c9179c77ad0383d5a2f1200b2e47f /engines/kyra | |
parent | 0fa13039a2f94ed299db19e7176bb151767bae83 (diff) | |
download | scummvm-rg350-4d7dda0b5cb9515d71c58393ff446534f7bb608b.tar.gz scummvm-rg350-4d7dda0b5cb9515d71c58393ff446534f7bb608b.tar.bz2 scummvm-rg350-4d7dda0b5cb9515d71c58393ff446534f7bb608b.zip |
KYRA: Only request actual save slots in listSaves.
Diffstat (limited to 'engines/kyra')
-rw-r--r-- | engines/kyra/detection.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/engines/kyra/detection.cpp b/engines/kyra/detection.cpp index 95c4accd29..a4786ef583 100644 --- a/engines/kyra/detection.cpp +++ b/engines/kyra/detection.cpp @@ -242,7 +242,7 @@ SaveStateList KyraMetaEngine::listSaves(const char *target) const { Common::SaveFileManager *saveFileMan = g_system->getSavefileManager(); Kyra::KyraEngine_v1::SaveHeader header; Common::String pattern = target; - pattern += ".???"; + pattern += ".###"; Common::StringArray filenames; filenames = saveFileMan->listSavefiles(pattern); @@ -250,10 +250,6 @@ SaveStateList KyraMetaEngine::listSaves(const char *target) const { SaveStateList saveList; for (Common::StringArray::const_iterator file = filenames.begin(); file != filenames.end(); ++file) { - // Skip automatic final saves made by EOB for the purpose of party transfer - if (!scumm_stricmp(file->c_str() + file->size() - 3, "fin")) - continue; - // Obtain the last 3 digits of the filename, since they correspond to the save slot int slotNum = atoi(file->c_str() + file->size() - 3); |