mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2025-09-02 06:19:22 +00:00
25 lines
No EOL
549 B
C#
25 lines
No EOL
549 B
C#
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);
|
|
}
|
|
}
|
|
} |