mirror of
https://github.com/sp-tarkov/modules.git
synced 2025-02-13 09:50:43 -05:00
21 lines
525 B
C#
21 lines
525 B
C#
|
using System;
|
|||
|
using System.Reflection;
|
|||
|
using Aki.Reflection.Patching;
|
|||
|
using HarmonyLib;
|
|||
|
|
|||
|
namespace Aki.Debugging.Patches
|
|||
|
{
|
|||
|
public class DataHandlerDebugPatch : ModulePatch
|
|||
|
{
|
|||
|
protected override MethodBase GetTargetMethod()
|
|||
|
{
|
|||
|
return AccessTools.Method(typeof(DataHandler), nameof(DataHandler.method_5));
|
|||
|
}
|
|||
|
|
|||
|
[PatchPostfix]
|
|||
|
private static void PatchPrefix(ref string __result)
|
|||
|
{
|
|||
|
Console.WriteLine($"response json: ${__result}");
|
|||
|
}
|
|||
|
}
|
|||
|
}
|