Unlock the console on startup

This commit is contained in:
Terry Hearst 2023-09-07 22:51:16 -04:00
parent ad96e68571
commit 3236b81d61

View file

@ -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<DevModeActivated>(Array.Empty<object>());
MIU.Console.Instance.gameObject.SetActive(true);
}
}
}