[O] better polyfill load

This commit is contained in:
Clansty
2024-09-28 15:31:58 +08:00
parent 74e39c437d
commit 24ecaab570
2 changed files with 108 additions and 58 deletions

View File

@@ -1,5 +1,6 @@
using System;
using System.IO;
using System.Reflection;
using System.Runtime.InteropServices;
using AquaMai.Fix;
using AquaMai.Helpers;
@@ -35,6 +36,9 @@ namespace AquaMai
{
Patch(nested);
}
var customMethod = type.GetMethod("DoCustomPatch", BindingFlags.Public | BindingFlags.Static);
customMethod?.Invoke(null, [HarmonyInstance]);
}
catch (Exception e)
{