diff options
author | Martin Kiewitz | 2015-04-17 23:48:18 +0200 |
---|---|---|
committer | Martin Kiewitz | 2015-04-17 23:48:18 +0200 |
commit | e75367ab3bfa75d1e08b107511f468086f8c3112 (patch) | |
tree | dcf08e6e6d99d8deb2eaef98c467f5e18e453179 | |
parent | 882b1c218fedf5ea45d81524f405df1178080e7a (diff) | |
download | scummvm-rg350-e75367ab3bfa75d1e08b107511f468086f8c3112.tar.gz scummvm-rg350-e75367ab3bfa75d1e08b107511f468086f8c3112.tar.bz2 scummvm-rg350-e75367ab3bfa75d1e08b107511f468086f8c3112.zip |
SCI: sort qfg import files alphabetically
-rw-r--r-- | engines/sci/engine/file.cpp | 3 |
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; |