2464246fd7
* partial commit * pre spt mod loader refactored --------- Co-authored-by: Alex <alex@dm-me-for-questions.com> Co-authored-by: clodan <clodan@clodan.com>
24 lines
476 B
C#
24 lines
476 B
C#
using System.Reflection;
|
|
using HarmonyLib;
|
|
|
|
namespace Server.Modding;
|
|
|
|
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);
|
|
}
|
|
}
|
|
}
|
|
}
|