using 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 BepInEx.Logging; using JoelG.ENA4.UI; using Logger; using Microsoft.CodeAnalysis; using On.JoelG.ENA4.UI; using Rewired; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)] [assembly: TargetFramework(".NETStandard,Version=v2.1", FrameworkDisplayName = ".NET Standard 2.1")] [assembly: AssemblyCompany("InputFix")] [assembly: AssemblyConfiguration("Debug")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyInformationalVersion("1.0.0+4321c7dd54b4600e7543e24e7f9ccdce6864e2b2")] [assembly: AssemblyProduct("InputFix")] [assembly: AssemblyTitle("InputFix")] [assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)] [assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)] [assembly: AssemblyVersion("1.0.0.0")] [module: UnverifiableCode] [module: RefSafetyRules(11)] namespace Microsoft.CodeAnalysis { [CompilerGenerated] [Embedded] internal sealed class EmbeddedAttribute : Attribute { } } namespace System.Runtime.CompilerServices { [CompilerGenerated] [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 Logger { internal static class Log { private static ManualLogSource _logSource; internal static void Init(ManualLogSource logSource) { _logSource = logSource; } internal static void Debug(object data) { StackFrame stackFrame = new StackFrame(1); MethodBase method = stackFrame.GetMethod(); _logSource.LogDebug((object)("[" + method.Name + "]: " + data)); } internal static void Error(object data) { _logSource.LogError(data); } internal static void Fatal(object data) { _logSource.LogFatal(data); } internal static void Info(object data) { StackFrame stackFrame = new StackFrame(1); MethodBase method = stackFrame.GetMethod(); _logSource.LogInfo((object)("[" + method.Name + "]: " + data)); } internal static void Warning(object data) { _logSource.LogWarning(data); } } } namespace InputFix { [BepInPlugin("com.Onyx.InputFix", "InputFix", "1.0.0")] public class InputFix : BaseUnityPlugin { [CompilerGenerated] private static class <>O { public static hook_GetActionRange <0>__GetActionRange; } public const string PluginGUID = "com.Onyx.InputFix"; public const string PluginAuthor = "Onyx"; public const string PluginName = "InputFix"; public const string PluginVersion = "1.0.0"; public void Awake() { Log.Init(((BaseUnityPlugin)this).Logger); } [Initializer(0f)] private static void Init() { //IL_0011: Unknown result type (might be due to invalid IL or missing references) //IL_0016: Unknown result type (might be due to invalid IL or missing references) //IL_001c: Expected O, but got Unknown object obj = <>O.<0>__GetActionRange; if (obj == null) { hook_GetActionRange val = GetActionRange; <>O.<0>__GetActionRange = val; obj = (object)val; } ControlMapperButton.GetActionRange += (hook_GetActionRange)obj; } private static AxisRange GetActionRange(orig_GetActionRange orig, ControlMapperButton self) { //IL_0003: Unknown result type (might be due to invalid IL or missing references) //IL_0008: Unknown result type (might be due to invalid IL or missing references) //IL_000a: Unknown result type (might be due to invalid IL or missing references) //IL_0010: Invalid comparison between Unknown and I4 //IL_001b: 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_0018: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Unknown result type (might be due to invalid IL or missing references) AxisRange result = orig.Invoke(self); if ((int)self.targetType == 3) { return (AxisRange)2; } return result; } } } namespace System.Runtime.CompilerServices { [AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)] internal sealed class IgnoresAccessChecksToAttribute : Attribute { public IgnoresAccessChecksToAttribute(string assemblyName) { } } }