NAK_CVR_Mods/IKFixes/Main.cs
NotAKidoS 54c7c7cb57 a
2023-04-07 22:39:54 -05:00

26 lines
No EOL
614 B
C#

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);
}
}
}