1
0
mirror of https://github.com/soarqin/DSP_Mods.git synced 2025-12-09 03:33:29 +08:00
This commit is contained in:
2023-09-07 20:55:34 +08:00
parent c974d70564
commit 668e7a01be
9 changed files with 419 additions and 169 deletions

View File

@@ -2,9 +2,22 @@
using HarmonyLib;
namespace CheatEnabler;
public class DevShortcuts
public static class DevShortcuts
{
public static ConfigEntry<bool> Enabled;
private static Harmony _patch;
public static void Init()
{
_patch = Harmony.CreateAndPatchAll(typeof(DevShortcuts));
}
public static void Uninit()
{
if (_patch == null) return;
_patch.UnpatchSelf();
_patch = null;
}
[HarmonyPostfix]
[HarmonyPatch(typeof(PlayerController), "Init")]