mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2025-09-02 06:19:22 +00:00
init
This commit is contained in:
parent
2bfe904adb
commit
fcc83aa570
6 changed files with 188 additions and 0 deletions
32
FuckToes/Main.cs
Normal file
32
FuckToes/Main.cs
Normal 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);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue