Files
SPT-Server-Build/Server/HarmonyBootstrapper.cs
T
2025-02-14 00:46:48 +01:00

24 lines
468 B
C#

using System.Reflection;
using HarmonyLib;
namespace Server;
public class HarmonyBootstrapper
{
public static void LoadAllPatches(List<Assembly> assemblies)
{
var hamony = new Harmony("SPT");
foreach (var assembly in assemblies)
{
try
{
hamony.PatchAll(assembly);
}
catch (Exception e)
{
Console.WriteLine(e);
}
}
}
}