From fea29b04ac6c2a7fade9850ff60e5eadb9602571 Mon Sep 17 00:00:00 2001 From: aryanrawlani28 Date: Thu, 13 Aug 2020 21:26:07 +0530 Subject: [PATCH] BASE: PLUGINS: Add a plugin suffix only if it is available --- base/plugins.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/base/plugins.cpp b/base/plugins.cpp index 7456ab02dfe..cd68e2be405 100644 --- a/base/plugins.cpp +++ b/base/plugins.cpp @@ -344,7 +344,9 @@ void PluginManagerUncached::init() { unloadPluginsExcept(PLUGIN_TYPE_ENGINE, NULL, false); // empty the engine plugins Common::String detectPluginName = "detection"; +#ifdef PLUGIN_SUFFIX detectPluginName += PLUGIN_SUFFIX; +#endif bool foundDetectPlugin = false;