mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2025-09-02 22:39:22 +00:00
move bunch of things to depricated folder
This commit is contained in:
parent
86828a94e2
commit
21f8893095
156 changed files with 193 additions and 93 deletions
39
.DepricatedMods/FuckMLA/HarmonyPatches.cs
Normal file
39
.DepricatedMods/FuckMLA/HarmonyPatches.cs
Normal file
|
@ -0,0 +1,39 @@
|
|||
using ABI_RC.Core;
|
||||
using ABI_RC.Core.Savior;
|
||||
using ABI_RC.Systems.InputManagement;
|
||||
using HarmonyLib;
|
||||
using UnityEngine;
|
||||
using Object = UnityEngine.Object;
|
||||
|
||||
namespace NAK.FuckMLA.HarmonyPatches;
|
||||
|
||||
internal class RootLogicPatches
|
||||
{
|
||||
[HarmonyPostfix]
|
||||
[HarmonyPatch(typeof(RootLogic), nameof(RootLogic.Awake))]
|
||||
private static void Postfix_RootLogic_Awake(ref RootLogic __instance)
|
||||
{
|
||||
__instance.ToggleMouse(MetaPort.Instance.isUsingVr);
|
||||
}
|
||||
}
|
||||
|
||||
internal class CVRInputModulePatches
|
||||
{
|
||||
[HarmonyPrefix]
|
||||
[HarmonyPatch(typeof(CVRInputModule), nameof(CVRInputModule.Update_Look), typeof(Vector2))]
|
||||
private static bool Prefix_CVRInputModule_Update_Look()
|
||||
{
|
||||
return Cursor.lockState == CursorLockMode.Locked;
|
||||
}
|
||||
}
|
||||
|
||||
internal class MOUSELOCKALPHAPatches
|
||||
{
|
||||
[HarmonyPrefix]
|
||||
[HarmonyPatch(typeof(MOUSELOCKALPHA), nameof(MOUSELOCKALPHA.Start))]
|
||||
private static bool Prefix_MOUSELOCKALPHA_Start(ref MOUSELOCKALPHA __instance)
|
||||
{
|
||||
Object.DestroyImmediate(__instance);
|
||||
return false;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue