public PluginManager(IPluginConfig config, string rootPath) { this.Config = config; this.Config.PluginChangedState += Config_PluginChangedState; this.rootPath = rootPath; this.bridge = new PluginBridge(this); }
public PluginManager(string rootPath, string configPath) { this.rootPath = rootPath; this.configPath = configPath; this.Config = new PluginConfig(); this.Bridge = new PluginBridge(this); Config.Load(configPath); Config.InternalPluginChangedState += Config_InternalPluginChangedState; }
public PluginManager(string rootPath, string configPath) { this.rootPath = rootPath; this.configPath = configPath; this.Config = new PluginConfig(); this.Bridge = new PluginBridge(this); LoadConfig(); Config.InternalPluginChangedState += Config_InternalPluginChangedState; Program.UserConfigReplaced += Program_UserConfigReplaced; }