mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2025-09-01 13:59:22 +00:00
32 lines
No EOL
1.1 KiB
C#
32 lines
No EOL
1.1 KiB
C#
using MelonLoader;
|
|
|
|
namespace NAK.Melons.FuckToes;
|
|
|
|
public class FuckToesMod : MelonMod
|
|
{
|
|
internal const string SettingsCategory = "FuckToes";
|
|
internal static MelonPreferences_Category m_categoryFuckToes;
|
|
internal static MelonPreferences_Entry<bool> m_entryEnabledVR, m_entryEnabledFBT;
|
|
public override void OnInitializeMelon()
|
|
{
|
|
m_categoryFuckToes = MelonPreferences.CreateCategory(SettingsCategory);
|
|
m_entryEnabledVR = m_categoryFuckToes.CreateEntry<bool>("Enabled", true, description: "Nuke VRIK toes when in Halfbody.");
|
|
m_entryEnabledFBT = m_categoryFuckToes.CreateEntry<bool>("Enabled in FBT", false, description: "Nuke VRIK toes when in FBT.");
|
|
|
|
//Apply patches (i stole)
|
|
ApplyPatches(typeof(HarmonyPatches.VRIKPatches));
|
|
}
|
|
|
|
private void ApplyPatches(Type type)
|
|
{
|
|
try
|
|
{
|
|
HarmonyInstance.PatchAll(type);
|
|
}
|
|
catch (Exception e)
|
|
{
|
|
LoggerInstance.Msg($"Failed while patching {type.Name}!");
|
|
LoggerInstance.Error(e);
|
|
}
|
|
}
|
|
} |