aboutsummaryrefslogtreecommitdiff
path: root/engines/avalanche/detection.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/avalanche/detection.cpp')
-rw-r--r--engines/avalanche/detection.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/engines/avalanche/detection.cpp b/engines/avalanche/detection.cpp
index 028f167e70..e35c5d2cac 100644
--- a/engines/avalanche/detection.cpp
+++ b/engines/avalanche/detection.cpp
@@ -40,7 +40,7 @@ uint32 AvalancheEngine::getFeatures() const {
}
const char *AvalancheEngine::getGameId() const {
- return _gameDescription->desc.gameid;
+ return _gameDescription->desc.gameId;
}
static const PlainGameDescriptor avalancheGames[] = {
@@ -107,10 +107,9 @@ SaveStateList AvalancheMetaEngine::listSaves(const char *target) const {
Common::StringArray filenames;
Common::String pattern = target;
pattern.toUppercase();
- pattern += ".???";
+ pattern += ".###";
filenames = saveFileMan->listSavefiles(pattern);
- sort(filenames.begin(), filenames.end()); // Sort (hopefully ensuring we are sorted numerically..)
SaveStateList saveList;
for (Common::StringArray::const_iterator filename = filenames.begin(); filename != filenames.end(); ++filename) {
@@ -152,6 +151,8 @@ SaveStateList AvalancheMetaEngine::listSaves(const char *target) const {
}
}
+ // Sort saves based on slot number.
+ Common::sort(saveList.begin(), saveList.end(), SaveStateDescriptorSlotComparator());
return saveList;
}