This commit is contained in:
NotAKidoS 2023-04-07 22:39:54 -05:00
parent 74d44b47ff
commit 54c7c7cb57
7 changed files with 33 additions and 33 deletions

26
IKFixes/Main.cs Normal file
View file

@ -0,0 +1,26 @@
using MelonLoader;
namespace NAK.Melons.IKFixes;
public class IKFixesMod : MelonMod
{
public override void OnInitializeMelon()
{
ApplyPatches(typeof(HarmonyPatches.VRIKPatches));
ApplyPatches(typeof(HarmonyPatches.BodySystemPatches));
ApplyPatches(typeof(HarmonyPatches.PlayerSetupPatches));
}
void ApplyPatches(Type type)
{
try
{
HarmonyInstance.PatchAll(type);
}
catch (Exception e)
{
LoggerInstance.Msg($"Failed while patching {type.Name}!");
LoggerInstance.Error(e);
}
}
}