BASE: PLUGINS: Add a plugin suffix only if it is available

This commit is contained in:
aryanrawlani28 2020-08-13 21:26:07 +05:30 committed by Eugene Sandulenko
parent 7615f37698
commit fea29b04ac

View file

@ -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;