0
0
mirror of https://github.com/sp-tarkov/modules.git synced 2025-02-13 05:50:44 -05:00
modules/project/SPT.Debugging/Patches/DataHandlerDebugPatch.cs

21 lines
524 B
C#
Raw Normal View History

using System;
using System.Reflection;
2024-05-21 19:10:17 +01:00
using SPT.Reflection.Patching;
using HarmonyLib;
2024-05-21 19:10:17 +01:00
namespace SPT.Debugging.Patches
{
public class DataHandlerDebugPatch : ModulePatch
{
protected override MethodBase GetTargetMethod()
{
return AccessTools.Method(typeof(DataHandler), nameof(DataHandler.method_5));
}
[PatchPostfix]
public static void PatchPrefix(ref string __result)
{
Console.WriteLine($"response json: ${__result}");
}
}
}