depricated bunch of mods i will never touch or are native now

This commit is contained in:
NotAKidoS 2024-09-06 01:22:37 -05:00
parent 1ed32799a8
commit 7f4237bf95
29 changed files with 0 additions and 0 deletions

View file

@ -0,0 +1,39 @@
using MelonLoader;
using NAK.IKAdjustments.HarmonyPatches;
using NAK.IKAdjustments.Integrations;
namespace NAK.IKAdjustments;
public class IKAdjustments : MelonMod
{
internal static string SettingsCategory = nameof(IKAdjustments);
public override void OnInitializeMelon()
{
ApplyPatches(typeof(IKSystemPatches));
InitializeIntegration("BTKUILib", BTKUIAddon.Initialize);
}
private void InitializeIntegration(string modName, Action integrationAction)
{
if (RegisteredMelons.All(it => it.Info.Name != modName))
return;
LoggerInstance.Msg($"Initializing {modName} integration.");
integrationAction.Invoke();
}
private void ApplyPatches(Type type)
{
try
{
HarmonyInstance.PatchAll(type);
}
catch (Exception e)
{
LoggerInstance.Msg($"Failed while patching {type.Name}!");
LoggerInstance.Error(e);
}
}
}