mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2025-09-02 22:39:22 +00:00
Move many mods to Deprecated folder, fix spelling
This commit is contained in:
parent
5e822cec8d
commit
0042590aa6
539 changed files with 7475 additions and 3120 deletions
|
@ -1,39 +0,0 @@
|
|||
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