diff --git a/src/controllers/plugins/PluginController.cpp b/src/controllers/plugins/PluginController.cpp index 7b55169d6..22c0347b3 100644 --- a/src/controllers/plugins/PluginController.cpp +++ b/src/controllers/plugins/PluginController.cpp @@ -118,7 +118,7 @@ bool PluginController::tryLoadFromDir(const QDir &pluginDir) return true; } -void PluginController::openLibrariesFor(Plugin *plugin, const QDir &pluginDir) +void PluginController::openLibrariesFor(Plugin *plugin) { auto *L = plugin->state_; lua::StackGuard guard(L); @@ -272,7 +272,7 @@ void PluginController::load(const QFileInfo &index, const QDir &pluginDir, << " because safe mode is enabled."; return; } - PluginController::openLibrariesFor(temp, pluginDir); + PluginController::openLibrariesFor(temp); if (!PluginController::isPluginEnabled(pluginName) || !getSettings()->pluginsEnabled) diff --git a/src/controllers/plugins/PluginController.hpp b/src/controllers/plugins/PluginController.hpp index 7c8acd012..f89ab15e1 100644 --- a/src/controllers/plugins/PluginController.hpp +++ b/src/controllers/plugins/PluginController.hpp @@ -67,7 +67,7 @@ private: const PluginMeta &meta); // This function adds lua standard libraries into the state - static void openLibrariesFor(Plugin *plugin, const QDir &pluginDir); + static void openLibrariesFor(Plugin *plugin); static void initSol(sol::state_view &lua, Plugin *plugin);