コード例 #1
0
        /// <summary>
        /// Deactivates the specified plugin.
        /// </summary>
        /// <param name="p_strPath">The path to the plugin to deactivate.</param>
        public void DeactivatePlugin(string p_strPath)
        {
            string strPath = p_strPath;

            if (!Path.IsPathRooted(p_strPath))
            {
                strPath = Path.Combine(GameMode.GameModeEnvironmentInfo.InstallationPath, p_strPath);
            }
            ActivePluginLog.DeactivatePlugin(strPath);
        }
コード例 #2
0
 /// <summary>
 /// Deactivates the given plugin.
 /// </summary>
 /// <param name="p_plgPlugin">The plugin to deactivate.</param>
 public void DeactivatePlugin(Plugin p_plgPlugin)
 {
     ActivePluginLog.DeactivatePlugin(p_plgPlugin);
 }
コード例 #3
0
 /// <summary>
 /// Removes the given plugin from the list of managed plugins.
 /// </summary>
 /// <param name="p_plgPlugin">The plugin to remove.</param>
 public void RemovePlugin(Plugin p_plgPlugin)
 {
     ActivePluginLog.DeactivatePlugin(p_plgPlugin);
     PluginOrderLog.RemovePlugin(p_plgPlugin);
     ManagedPluginRegistry.UnregisterPlugin(p_plgPlugin);
 }