/// <summary> /// because InitializePlugins needs API, so LoadPlugins needs to be called first /// todo happlebao The API should be removed /// </summary> /// <param name="settings">Plugin settings</param> public static void LoadPlugins(PluginSettings settings) { _metadatas = PluginConfig.Parse(Directories); Settings = settings ?? throw new ArgumentNullException(nameof(settings)); Settings.UpdatePluginSettings(_metadatas); AllPlugins = PluginsLoader.Plugins(_metadatas); }
/// <summary> /// because InitializePlugins needs API, so LoadPlugins needs to be called first /// todo happlebao The API should be removed /// </summary> /// <param name="settings"></param> public static void LoadPlugins(PluginsSettings settings) { _metadatas = PluginConfig.Parse(Directories); Settings = settings; Settings.UpdatePluginSettings(_metadatas); AllPlugins = PluginsLoader.Plugins(_metadatas, Settings); }