From 3236b81d617700047df8875069928348adba7355 Mon Sep 17 00:00:00 2001 From: Terry Hearst Date: Thu, 7 Sep 2023 22:51:16 -0400 Subject: [PATCH] Unlock the console on startup --- Patches/PlatformSetupPatches.cs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 Patches/PlatformSetupPatches.cs diff --git a/Patches/PlatformSetupPatches.cs b/Patches/PlatformSetupPatches.cs new file mode 100644 index 0000000..0798231 --- /dev/null +++ b/Patches/PlatformSetupPatches.cs @@ -0,0 +1,16 @@ +using HarmonyLib; +using System; +using MIU; + +namespace ConsoleUnlocker.Patches +{ + [HarmonyPatch(typeof(PlatformSetup), "GetDevIDs")] + internal class PlatformSetupPatches + { + static void Postfix() + { + GlobalContext.Invoke(Array.Empty()); + MIU.Console.Instance.gameObject.SetActive(true); + } + } +}