ENGINES: Sort game file listings
The Unknown Game report and AdvancedMetaEngineDetection logging statements are now sorted by file name, instead of the HashMap iteration order.
This commit is contained in:
parent
ad63bed648
commit
4d1107d992
2 changed files with 17 additions and 5 deletions
|
@ -431,8 +431,14 @@ Common::Error AdvancedMetaEngineDetection::createInstance(OSystem *syst, Engine
|
|||
}
|
||||
|
||||
debug("Running %s", gameDescriptor.description.c_str());
|
||||
Common::StringArray filenames;
|
||||
for (FilePropertiesMap::const_iterator i = gameDescriptor.matchedFiles.begin(); i != gameDescriptor.matchedFiles.end(); ++i) {
|
||||
debug("%s: %s, %llu bytes.", i->_key.c_str(), i->_value.md5.c_str(), (unsigned long long)i->_value.size);
|
||||
filenames.push_back(i->_key);
|
||||
}
|
||||
Common::sort(filenames.begin(), filenames.end());
|
||||
for (uint i = 0; i < filenames.size(); ++i) {
|
||||
const FileProperties &file = gameDescriptor.matchedFiles[filenames[i]];
|
||||
debug("%s: %s, %llu bytes.", filenames[i].c_str(), file.md5.c_str(), (unsigned long long)file.size);
|
||||
}
|
||||
initSubSystems(agdDesc.desc);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue