From 3e3c2d95e87707e20fad85a19f00bc909f2d84af Mon Sep 17 00:00:00 2001 From: Eris Date: Sat, 18 Dec 2021 18:28:49 +0100 Subject: [PATCH] Fixed incorrect parameter names being used --- IPA.Loader/Loader/PluginManager.cs | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/IPA.Loader/Loader/PluginManager.cs b/IPA.Loader/Loader/PluginManager.cs index 3112c419..b323366f 100644 --- a/IPA.Loader/Loader/PluginManager.cs +++ b/IPA.Loader/Loader/PluginManager.cs @@ -1,5 +1,4 @@ using System; -using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; @@ -7,7 +6,6 @@ using System.Reflection; using System.Runtime.InteropServices; using System.Text; using IPA.Config; -using IPA.Old; using IPA.Utilities; using Mono.Cecil; using UnityEngine; @@ -52,10 +50,10 @@ namespace IPA.Loader /// /// Gets info about the enabled plugin with the specified ID. /// - /// the ID name of the plugin to get (must be an exact match) + /// the ID name of the plugin to get (must be an exact match) /// the plugin metadata for the requested plugin or if it doesn't exist or is disabled - public static PluginMetadata GetPluginFromId(string name) - => BSMetas.Select(p => p.Metadata).FirstOrDefault(p => p.Id == name); + public static PluginMetadata GetPluginFromId(string id) + => BSMetas.Select(p => p.Metadata).FirstOrDefault(p => p.Id == id); /// /// Gets a disabled plugin's metadata by its name. @@ -68,10 +66,10 @@ namespace IPA.Loader /// /// Gets a disabled plugin's metadata by its ID. /// - /// the ID of the disabled plugin to get + /// the ID of the disabled plugin to get /// the metadata for the corresponding plugin - public static PluginMetadata GetDisabledPluginFromId(string name) => - DisabledPlugins.FirstOrDefault(p => p.Id == name); + public static PluginMetadata GetDisabledPluginFromId(string id) => + DisabledPlugins.FirstOrDefault(p => p.Id == id); /// /// Creates a new transaction for mod enabling and disabling mods simultaneously.