mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2025-09-02 14:29:25 +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
22
.Deprecated/EzCurls/Main.cs
Normal file
22
.Deprecated/EzCurls/Main.cs
Normal file
|
@ -0,0 +1,22 @@
|
|||
using MelonLoader;
|
||||
using System.Reflection;
|
||||
using ABI_RC.Systems.InputManagement;
|
||||
using ABI_RC.Systems.InputManagement.InputModules;
|
||||
|
||||
namespace NAK.EzCurls;
|
||||
|
||||
public class EzCurls : MelonMod
|
||||
{
|
||||
public override void OnInitializeMelon()
|
||||
{
|
||||
HarmonyInstance.Patch(
|
||||
typeof(CVRInputModule_XR).GetMethod(nameof(CVRInputModule_XR.ModuleAdded)),
|
||||
postfix: new HarmonyLib.HarmonyMethod(typeof(EzCurls).GetMethod(nameof(OnCVRInputModule_XRModuleAdded_Postfix), BindingFlags.NonPublic | BindingFlags.Static))
|
||||
);
|
||||
|
||||
ModSettings.Initialize();
|
||||
}
|
||||
|
||||
private static void OnCVRInputModule_XRModuleAdded_Postfix()
|
||||
=> CVRInputManager.Instance.AddInputModule(new InputModuleCurlAdjuster());
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue