24 lines
468 B
C#
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);
|
|
}
|
|
}
|
|
}
|
|
}
|