mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2025-09-02 14:29:25 +00:00
initial release
This commit is contained in:
parent
f2f7874ffe
commit
bf1dbf5e01
6 changed files with 266 additions and 0 deletions
25
KneeFix/Main.cs
Normal file
25
KneeFix/Main.cs
Normal file
|
@ -0,0 +1,25 @@
|
|||
using MelonLoader;
|
||||
|
||||
namespace NAK.Melons.KneeFix;
|
||||
|
||||
public class KneeFixMod : MelonMod
|
||||
{
|
||||
public override void OnInitializeMelon()
|
||||
{
|
||||
ApplyPatches(typeof(HarmonyPatches.BodySystemPatches));
|
||||
ApplyPatches(typeof(HarmonyPatches.VRIKPatches));
|
||||
}
|
||||
|
||||
void ApplyPatches(Type type)
|
||||
{
|
||||
try
|
||||
{
|
||||
HarmonyInstance.PatchAll(type);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
LoggerInstance.Msg($"Failed while patching {type.Name}!");
|
||||
LoggerInstance.Error(e);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue