Due to update 2.4.3, some mods may no longer function. FixedConfig may be necessary.
Decompiled source of NoSizeCaps v1.1.0
noSizeCaps.dll
Decompiled a year agousing System; using System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using System.Security; using System.Security.Permissions; using BepInEx; using BoplFixedMath; using HarmonyLib; using Microsoft.CodeAnalysis; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)] [assembly: TargetFramework(".NETFramework,Version=v4.6", FrameworkDisplayName = ".NET Framework 4.6")] [assembly: AssemblyCompany("noSizeCaps")] [assembly: AssemblyConfiguration("Release")] [assembly: AssemblyDescription("My first plugin")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyInformationalVersion("1.0.0")] [assembly: AssemblyProduct("noSizeCaps")] [assembly: AssemblyTitle("noSizeCaps")] [assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)] [assembly: AssemblyVersion("1.0.0.0")] [module: UnverifiableCode] [module: RefSafetyRules(11)] namespace Microsoft.CodeAnalysis { [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] internal sealed class EmbeddedAttribute : Attribute { } } namespace System.Runtime.CompilerServices { [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] [AttributeUsage(AttributeTargets.Module, AllowMultiple = false, Inherited = false)] internal sealed class RefSafetyRulesAttribute : Attribute { public readonly int Version; public RefSafetyRulesAttribute(int P_0) { Version = P_0; } } } namespace noSizeCaps { [BepInPlugin("com.WackyModer.noSizeCaps", "No Size Caps", "1.1.0")] public class Plugin : BaseUnityPlugin { private void Awake() { //IL_0015: Unknown result type (might be due to invalid IL or missing references) //IL_0048: Unknown result type (might be due to invalid IL or missing references) //IL_004b: Unknown result type (might be due to invalid IL or missing references) //IL_0059: Expected O, but got Unknown //IL_0088: Unknown result type (might be due to invalid IL or missing references) //IL_008b: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Expected O, but got Unknown //IL_00c8: Unknown result type (might be due to invalid IL or missing references) //IL_00cb: Unknown result type (might be due to invalid IL or missing references) //IL_00d9: Expected O, but got Unknown //IL_0108: Unknown result type (might be due to invalid IL or missing references) //IL_010b: Unknown result type (might be due to invalid IL or missing references) //IL_0119: Expected O, but got Unknown ((BaseUnityPlugin)this).Logger.LogInfo((object)"Plugin noSizeCaps is loaded!"); Harmony val = new Harmony("com.WackyModer.noSizeCaps"); MethodInfo methodInfo = AccessTools.Method(typeof(PlatformTransform), "Init", (Type[])null, (Type[])null); MethodInfo methodInfo2 = AccessTools.Method(typeof(myPatches), "Init_plattrans_myplug", (Type[])null, (Type[])null); val.Patch((MethodBase)methodInfo, new HarmonyMethod(methodInfo2), (HarmonyMethod)null, (HarmonyMethod)null, (HarmonyMethod)null, (HarmonyMethod)null); methodInfo = AccessTools.Method(typeof(DPhysicsBox), "Init", (Type[])null, (Type[])null); methodInfo2 = AccessTools.Method(typeof(myPatches), "Init_dphybox_myplug", (Type[])null, (Type[])null); val.Patch((MethodBase)methodInfo, new HarmonyMethod(methodInfo2), (HarmonyMethod)null, (HarmonyMethod)null, (HarmonyMethod)null, (HarmonyMethod)null); methodInfo = AccessTools.Method(typeof(DPhysicsRoundedRect), "Init", (Type[])null, (Type[])null); methodInfo2 = AccessTools.Method(typeof(myPatches), "Init_dphyrndrct_myplug", (Type[])null, (Type[])null); val.Patch((MethodBase)methodInfo, new HarmonyMethod(methodInfo2), (HarmonyMethod)null, (HarmonyMethod)null, (HarmonyMethod)null, (HarmonyMethod)null); methodInfo = AccessTools.Method(typeof(DPhysicsCircle), "Init", (Type[])null, (Type[])null); methodInfo2 = AccessTools.Method(typeof(myPatches), "Init_dphycirl_myplug", (Type[])null, (Type[])null); val.Patch((MethodBase)methodInfo, new HarmonyMethod(methodInfo2), (HarmonyMethod)null, (HarmonyMethod)null, (HarmonyMethod)null, (HarmonyMethod)null); val.PatchAll(); } } public class myPatches { public static bool Init_plattrans_myplug(PlatformTransform __instance) { //IL_0007: Unknown result type (might be due to invalid IL or missing references) //IL_000c: Unknown result type (might be due to invalid IL or missing references) //IL_0017: Unknown result type (might be due to invalid IL or missing references) //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0028: Unknown result type (might be due to invalid IL or missing references) //IL_002d: Unknown result type (might be due to invalid IL or missing references) __instance.MaxSize = (Fix)10000L; __instance.MinSize = (Fix)1E-05f; __instance.maxArea = (Fix)20000L; return true; } public static bool Init_dphybox_myplug(DPhysicsBox __instance) { //IL_0007: Unknown result type (might be due to invalid IL or missing references) //IL_000c: Unknown result type (might be due to invalid IL or missing references) //IL_0017: Unknown result type (might be due to invalid IL or missing references) //IL_001c: Unknown result type (might be due to invalid IL or missing references) __instance.MaxScale = (Fix)10000L; __instance.MinScale = (Fix)1E-05f; return true; } public static bool Init_dphyrndrct_myplug(DPhysicsRoundedRect __instance) { //IL_0007: Unknown result type (might be due to invalid IL or missing references) //IL_000c: Unknown result type (might be due to invalid IL or missing references) //IL_0017: Unknown result type (might be due to invalid IL or missing references) //IL_001c: Unknown result type (might be due to invalid IL or missing references) __instance.MaxScale = (Fix)10000L; __instance.MinScale = (Fix)1E-05f; return true; } public static bool Init_dphycirl_myplug(DPhysicsCircle __instance) { //IL_0007: Unknown result type (might be due to invalid IL or missing references) //IL_000c: Unknown result type (might be due to invalid IL or missing references) //IL_0017: Unknown result type (might be due to invalid IL or missing references) //IL_001c: Unknown result type (might be due to invalid IL or missing references) __instance.MaxScale = (Fix)10000L; __instance.MinScale = (Fix)1E-05f; return true; } } [HarmonyPatch(typeof(Player))] [HarmonyPatch(/*Could not decode attribute arguments.*/)] public class YourClass_Scale_SetterPatch { private static bool Prefix(ref Fix value, ref Fix ___scale) { //IL_0002: Unknown result type (might be due to invalid IL or missing references) //IL_0007: Unknown result type (might be due to invalid IL or missing references) ___scale = value; return false; } } public static class PluginInfo { public const string PLUGIN_GUID = "noSizeCaps"; public const string PLUGIN_NAME = "noSizeCaps"; public const string PLUGIN_VERSION = "1.0.0"; } }