// Consolidated decompiled source — Azumatt-UnlockCursor v1.0.1 // Generated by Hexium's decompiled-source browser. Best-effort concatenation of every type in this // version's manifest — decompiler output isn't guaranteed to compile as-is. using System; using System.Runtime.CompilerServices; using Microsoft.CodeAnalysis; using System.Reflection; using BepInEx; using BepInEx.Logging; using HarmonyLib; using UnityEngine; // ---- UnlockCursor.dll :: Microsoft.CodeAnalysis.EmbeddedAttribute ---- namespace Microsoft.CodeAnalysis { [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] internal sealed class EmbeddedAttribute : Attribute { } } // ---- UnlockCursor.dll :: System.Runtime.CompilerServices.NullableAttribute ---- namespace System.Runtime.CompilerServices { [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] [AttributeUsage(AttributeTargets.Class | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Event | AttributeTargets.Parameter | AttributeTargets.ReturnValue | AttributeTargets.GenericParameter, AllowMultiple = false, Inherited = false)] internal sealed class NullableAttribute : Attribute { public readonly byte[] NullableFlags; public NullableAttribute(byte P_0) { NullableFlags = new byte[1] { P_0 }; } public NullableAttribute(byte[] P_0) { NullableFlags = P_0; } } } // ---- UnlockCursor.dll :: System.Runtime.CompilerServices.NullableContextAttribute ---- namespace System.Runtime.CompilerServices { [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Method | AttributeTargets.Interface | AttributeTargets.Delegate, AllowMultiple = false, Inherited = false)] internal sealed class NullableContextAttribute : Attribute { public readonly byte Flag; public NullableContextAttribute(byte P_0) { Flag = P_0; } } } // ---- UnlockCursor.dll :: UnlockCursor.UnlockCursorPlugin ---- namespace UnlockCursor { [BepInPlugin("Azumatt.UnlockCursor", "UnlockCursor", "1.0.1")] public class UnlockCursorPlugin : BaseUnityPlugin { internal const string ModName = "UnlockCursor"; internal const string ModVersion = "1.0.1"; internal const string Author = "Azumatt"; private const string ModGUID = "Azumatt.UnlockCursor"; private readonly Harmony _harmony = new Harmony("Azumatt.UnlockCursor"); public static readonly ManualLogSource UnlockCursorLogger = BepInEx.Logging.Logger.CreateLogSource("UnlockCursor"); public void Awake() { Assembly executingAssembly = Assembly.GetExecutingAssembly(); _harmony.PatchAll(executingAssembly); } } } // ---- UnlockCursor.dll :: UnlockCursor.GlobalCheckOnGUIPatch ---- namespace UnlockCursor { [HarmonyPatch(typeof(Global), "CheckOnGUI")] internal static class GlobalCheckOnGUIPatch { private static void Postfix(Global __instance) { if (__instance.OnGUI) { Cursor.lockState = CursorLockMode.None; } } } }