コード例 #1
0
		private PluginResponse UnloadPlugin(Plugin plugin, bool keepUnloaded)
		{
			if (plugin == null)
				return PluginResponse.PluginNotFound;

			plugin.Unload();

			if (keepUnloaded)
				plugin.status = PluginStatus.Disabled;
			return PluginResponse.Ok;
		}
コード例 #2
0
        private PluginResponse UnloadPlugin(Plugin plugin, bool keepUnloaded)
        {
            if (plugin == null)
            {
                return(PluginResponse.PluginNotFound);
            }

            plugin.Unload();

            if (keepUnloaded)
            {
                plugin.status = PluginStatus.Disabled;
            }
            return(PluginResponse.Ok);
        }
コード例 #3
0
		private PluginResponse UnloadPlugin(Plugin plugin, bool keepUnloaded)
		{
			if (plugin == null)
				return PluginResponse.PluginNotFound;

			plugin.Unload();

			if (keepUnloaded)
				plugin.status = PluginStatus.Disabled;
			return PluginResponse.Ok;
		}