From 21bd468b9a380cde2409f88e75c33eb58cd56f30 Mon Sep 17 00:00:00 2001 From: Le Philousophe Date: Sun, 2 Jun 2024 19:20:46 +0200 Subject: [PATCH] SCI: Simplify engine plugin search --- engines/sci/detection.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/engines/sci/detection.cpp b/engines/sci/detection.cpp index f4c9963227b..8ff876fd1f2 100644 --- a/engines/sci/detection.cpp +++ b/engines/sci/detection.cpp @@ -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) {