Browse Source

Apply JSON metadata after calling plugin init() function

tags/v1.0.0
Andrew Belt 6 years ago
parent
commit
4880d699a4
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/plugin.cpp

+ 1
- 1
src/plugin.cpp View File

@@ -111,8 +111,8 @@ static bool loadPlugin(std::string path) {
Plugin *plugin = new Plugin;
plugin->path = path;
plugin->handle = handle;
plugin->fromJson(rootJ);
initCallback(plugin);
plugin->fromJson(rootJ);

// Reject plugin if slug already exists
Plugin *oldPlugin = getPlugin(plugin->slug);


Loading…
Cancel
Save