mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
Make PluginController::openLibrariesFor not take a directory
This commit is contained in:
parent
dddb8f5886
commit
557e50f310
|
@ -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)
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue