Make PluginController::openLibrariesFor not take a directory

This commit is contained in:
Mm2PL 2024-10-09 23:06:52 +02:00
parent dddb8f5886
commit 557e50f310
No known key found for this signature in database
GPG key ID: 94AC9B80EFA15ED9
2 changed files with 3 additions and 3 deletions

View file

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

View file

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