NAK_CVR_Mods/CameraFixes/Main.cs
2023-05-09 03:46:58 -05:00

28 lines
No EOL
602 B
C#

using ABI_RC.Core.IO;
using MelonLoader;
using UnityEngine;
namespace NAK.CameraFixes;
public class CameraFixes : MelonMod
{
internal static MelonLogger.Instance Logger;
public override void OnInitializeMelon()
{
Logger = LoggerInstance;
ApplyPatches(typeof(HarmonyPatches.CVRCamControllerPatches));
}
void ApplyPatches(Type type)
{
try
{
HarmonyInstance.PatchAll(type);
}
catch (Exception e)
{
Logger.Msg($"Failed while patching {type.Name}!");
Logger.Error(e);
}
}
}