Пример #1
0
        /// <summary>
        /// Adds the specified plugin to the list of managed plugins.
        /// </summary>
        /// <param name="p_strPluginPath">The path to the plugin to add.</param>
        /// <returns><c>true</c> if the specified plugin was added;
        /// <c>false</c> otherwise.</returns>
        public bool AddPlugin(string p_strPluginPath)
        {
            bool booSuccess = ManagedPluginRegistry.RegisterPlugin(p_strPluginPath);

            if (booSuccess)
            {
                PluginOrderLog.SetPluginOrderIndex(ManagedPluginRegistry.GetPlugin(p_strPluginPath), PluginOrderLog.OrderedPlugins.Count);
            }
            return(booSuccess);
        }
Пример #2
0
 /// <summary>
 /// Sets the load order of the specifid plugin.
 /// </summary>
 /// <param name="p_plgPlugin">The plugin whose load order is to be set.</param>
 /// <param name="p_intNewIndex">The new load order index of the plugin.</param>
 public void SetPluginOrderIndex(Plugin p_plgPlugin, int p_intNewIndex)
 {
     PluginOrderLog.SetPluginOrderIndex(p_plgPlugin, p_intNewIndex);
 }