using HarmonyLib;
using System;
namespace _Elements
{
[HarmonyPatch(typeof(Elements.BaseReceiveParam), MethodType.Constructor, new Type[] { typeof(LitJson.JsonData) })]
public class _BaseReceiveParam
{
[HarmonyPostfix]
public static void BaseReceiveParam()
{
int stage = 0;
Console.WriteLine("test");
}
}
}
It would be helpful if you attached a debugger and set a break point in Il2CppDetourMethodPatcher.Init(). I'd like to see the stack trace on that exception.