SCI: Simplify engine plugin search

This commit is contained in:
Le Philousophe 2024-06-02 19:20:46 +02:00 committed by Eugene Sandulenko
parent bef5e4e0a5
commit 21bd468b9a

View File

@ -251,12 +251,7 @@ ADDetectedGame SciMetaEngineDetection::fallbackDetect(const FileMap &allFiles, c
}
}
const Plugin *detectionPlugin = EngineMan.findDetectionPlugin(getName());
if (!detectionPlugin) {
return ADDetectedGame();
}
const Plugin *enginePlugin = PluginMan.getEngineFromDetectionPlugin(detectionPlugin);
const Plugin *enginePlugin = PluginMan.findEnginePlugin(getName());
if (!enginePlugin) {
static bool warn = true;
if (warn) {