BASE: Add dumpAllDetectionEntries() to commandLine

- Add virtual function dumpDetectionEntries() to
   MetaEngine
 - Glk, Sky and SCUMM do not have proper
   definitions for dumpDetectionEntries()
 - Add md5PropToGameFile() to extract prefixes for
   md5s
 - AdvancedDetector writes content of DAT file to
   STDOUT
This commit is contained in:
Abhinav Chennubhotla authored and Eugene Sandulenko committed 2023-07-03 13:54:50 +03:00
1 parent 5f3e062f97
commit bb20579bee
7 files changed
+70 -2

No files matched your search

+1 -2
View File
@@ -1424,12 +1424,11 @@ static void listAudioDevices() {
}
/** Dump MD5s from detection entries into STDOUT */
/** WIP: Current only creates a metaengine instance for each engine */
static void dumpAllDetectionEntries() {
// We need to create one file for each engine
const PluginList &plugins = EngineMan.getPlugins();
for (PluginList::const_iterator iter = plugins.begin(); iter != plugins.end(); iter++) {
const MetaEngineDetection &metaEngine = (*iter)->get<MetaEngineDetection>();
metaEngine.dumpDetectionEntries();
}
}