This commit is contained in:
NotAKidoS 2023-02-02 22:54:47 -06:00
parent 2bfe904adb
commit fcc83aa570
6 changed files with 188 additions and 0 deletions

32
FuckToes/Main.cs Normal file
View file

@ -0,0 +1,32 @@
using MelonLoader;
namespace NAK.Melons.FuckToes;
public class FuckToesMod : MelonMod
{
internal const string SettingsCategory = "Fuck Toes";
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);
}
}
}