Files
CustomMuzzleFlash/Harmony/Init.cs
2025-06-04 16:16:45 +09:30

17 lines
412 B
C#

using System.Reflection;
public class CustomMuzzleFlashInit : IModApi
{
private static bool inited = false;
public void InitMod(Mod _modInstance)
{
if (inited)
return;
inited = true;
Log.Out(" Loading Patch: " + GetType());
var harmony = new HarmonyLib.Harmony(GetType().ToString());
harmony.PatchAll(Assembly.GetExecutingAssembly());
}
}