[LuaTTS] Initial Builds

This commit is contained in:
NotAKidoS 2024-05-31 21:31:43 -05:00
parent f8dc4e9521
commit 0a0e6d849b
9 changed files with 194 additions and 1 deletions

25
LuaTTS/Main.cs Normal file
View file

@ -0,0 +1,25 @@
using MelonLoader;
using NAK.LuaTTS.Patches;
namespace NAK.LuaTTS;
public class LuaTTSMod : MelonMod
{
public override void OnInitializeMelon()
{
ApplyPatches(typeof(LuaScriptFactoryPatches));
}
private void ApplyPatches(Type type)
{
try
{
HarmonyInstance.PatchAll(type);
}
catch (Exception e)
{
LoggerInstance.Msg($"Failed while patching {type.Name}!");
LoggerInstance.Error(e);
}
}
}