Browse Source

Fixed incorrect parameter names being used

pull/74/head
Eris 2 years ago
parent
commit
3e3c2d95e8
1 changed files with 6 additions and 8 deletions
  1. +6
    -8
      IPA.Loader/Loader/PluginManager.cs

+ 6
- 8
IPA.Loader/Loader/PluginManager.cs View File

@ -1,5 +1,4 @@
using System; using System;
using System.Collections;
using System.Collections.Generic; using System.Collections.Generic;
using System.IO; using System.IO;
using System.Linq; using System.Linq;
@ -7,7 +6,6 @@ using System.Reflection;
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
using System.Text; using System.Text;
using IPA.Config; using IPA.Config;
using IPA.Old;
using IPA.Utilities; using IPA.Utilities;
using Mono.Cecil; using Mono.Cecil;
using UnityEngine; using UnityEngine;
@ -52,10 +50,10 @@ namespace IPA.Loader
/// <summary> /// <summary>
/// Gets info about the enabled plugin with the specified ID. /// Gets info about the enabled plugin with the specified ID.
/// </summary> /// </summary>
/// <param name="name">the ID name of the plugin to get (must be an exact match)</param>
/// <param name="id">the ID name of the plugin to get (must be an exact match)</param>
/// <returns>the plugin metadata for the requested plugin or <see langword="null"/> if it doesn't exist or is disabled</returns> /// <returns>the plugin metadata for the requested plugin or <see langword="null"/> if it doesn't exist or is disabled</returns>
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);
/// <summary> /// <summary>
/// Gets a disabled plugin's metadata by its name. /// Gets a disabled plugin's metadata by its name.
@ -68,10 +66,10 @@ namespace IPA.Loader
/// <summary> /// <summary>
/// Gets a disabled plugin's metadata by its ID. /// Gets a disabled plugin's metadata by its ID.
/// </summary> /// </summary>
/// <param name="name">the ID of the disabled plugin to get</param>
/// <param name="id">the ID of the disabled plugin to get</param>
/// <returns>the metadata for the corresponding plugin</returns> /// <returns>the metadata for the corresponding plugin</returns>
public static PluginMetadata GetDisabledPluginFromId(string name) =>
DisabledPlugins.FirstOrDefault(p => p.Id == name);
public static PluginMetadata GetDisabledPluginFromId(string id) =>
DisabledPlugins.FirstOrDefault(p => p.Id == id);
/// <summary> /// <summary>
/// Creates a new transaction for mod enabling and disabling mods simultaneously. /// Creates a new transaction for mod enabling and disabling mods simultaneously.


Loading…
Cancel
Save