diff --git a/IPA.Loader/Config/Stores/GeneratedStoreImpl/ObjectStructure.cs b/IPA.Loader/Config/Stores/GeneratedStoreImpl/ObjectStructure.cs index a09e39d4..2db850e6 100644 --- a/IPA.Loader/Config/Stores/GeneratedStoreImpl/ObjectStructure.cs +++ b/IPA.Loader/Config/Stores/GeneratedStoreImpl/ObjectStructure.cs @@ -33,13 +33,13 @@ namespace IPA.Config.Stores public Type ConverterTarget; public FieldInfo ConverterField; - // invalid for objects with IsNullabe false + // invalid for objects with IsNullable false public Type NullableWrappedType => Nullable.GetUnderlyingType(Type); - // invalid for objects with IsNullabe false + // invalid for objects with IsNullable false public PropertyInfo Nullable_HasValue => Type.GetProperty(nameof(Nullable.HasValue)); - // invalid for objects with IsNullabe false + // invalid for objects with IsNullable false public PropertyInfo Nullable_Value => Type.GetProperty(nameof(Nullable.Value)); - // invalid for objects with IsNullabe false + // invalid for objects with IsNullable false public ConstructorInfo Nullable_Construct => Type.GetConstructor(new[] { NullableWrappedType }); public Type ConversionType => IsNullable ? NullableWrappedType : Type; diff --git a/IPA.Loader/PluginInterfaces/IPA/IPlugin.cs b/IPA.Loader/PluginInterfaces/IPA/IPlugin.cs index f6c3083a..69cc2b6b 100644 --- a/IPA.Loader/PluginInterfaces/IPA/IPlugin.cs +++ b/IPA.Loader/PluginInterfaces/IPA/IPlugin.cs @@ -7,7 +7,7 @@ namespace IPA.Old /// Interface for generic Illusion unity plugins. Every class that implements this will be loaded if the DLL is placed in /// Plugins. /// - [Obsolete("When building plugins for Beat Saber, use IBeatSaberPlugin")] + [Obsolete("When building plugins for Beat Saber, use the plugin attributes starting with PluginAttribute")] public interface IPlugin { /// diff --git a/IPA.Loader/Utilities/UnityGame.cs b/IPA.Loader/Utilities/UnityGame.cs index 6b58d860..e530328f 100644 --- a/IPA.Loader/Utilities/UnityGame.cs +++ b/IPA.Loader/Utilities/UnityGame.cs @@ -2,7 +2,7 @@ using System; using System.IO; using System.Reflection; -using System.Threading; +using System.Threading; using UnityEngine; #if NET3 using Path = Net3_Proxy.Path; @@ -61,8 +61,8 @@ namespace IPA.Utilities } private static Thread mainThread; - /// - /// Checks if the currently running code is running on the Unity main thread. + /// + /// Checks if the currently running code is running on the Unity main thread. /// /// if the curent thread is the Unity main thread, otherwise public static bool OnMainThread => Thread.CurrentThread.ManagedThreadId == mainThread?.ManagedThreadId;