Unlock the console on startup
This commit is contained in:
parent
ad96e68571
commit
3236b81d61
1 changed files with 16 additions and 0 deletions
16
Patches/PlatformSetupPatches.cs
Normal file
16
Patches/PlatformSetupPatches.cs
Normal 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);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue