aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/engine
diff options
context:
space:
mode:
authorMartin Kiewitz2015-04-17 23:48:18 +0200
committerMartin Kiewitz2015-04-17 23:48:18 +0200
commite75367ab3bfa75d1e08b107511f468086f8c3112 (patch)
treedcf08e6e6d99d8deb2eaef98c467f5e18e453179 /engines/sci/engine
parent882b1c218fedf5ea45d81524f405df1178080e7a (diff)
downloadscummvm-rg350-e75367ab3bfa75d1e08b107511f468086f8c3112.tar.gz
scummvm-rg350-e75367ab3bfa75d1e08b107511f468086f8c3112.tar.bz2
scummvm-rg350-e75367ab3bfa75d1e08b107511f468086f8c3112.zip
SCI: sort qfg import files alphabetically
Diffstat (limited to 'engines/sci/engine')
-rw-r--r--engines/sci/engine/file.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/sci/engine/file.cpp b/engines/sci/engine/file.cpp
index 2ba7d15ac0..623caec856 100644
--- a/engines/sci/engine/file.cpp
+++ b/engines/sci/engine/file.cpp
@@ -252,6 +252,9 @@ void DirSeeker::addAsVirtualFiles(Common::String title, Common::String fileMask)
Common::SaveFileManager *saveFileMan = g_sci->getSaveFileManager();
Common::StringArray foundFiles = saveFileMan->listSavefiles(fileMask);
if (!foundFiles.empty()) {
+ // Sort all filenames alphabetically
+ Common::sort(foundFiles.begin(), foundFiles.end());
+
_files.push_back(title);
_virtualFiles.push_back("");
Common::StringArray::iterator it;