using Aki.Common.Http; using Aki.Common.Utils; using Aki.Custom.Models; using Aki.Reflection.Patching; using EFT; using EFT.UI; using HarmonyLib; using System.Reflection; using TMPro; namespace Aki.Debugging.Patches { public class DebugLogoPatch : ModulePatch { protected override MethodBase GetTargetMethod() { return AccessTools.Method(typeof(TarkovApplication), nameof(TarkovApplication.method_27)); } [PatchPrefix] private static void PatchPrefix(Profile profile) { MonoBehaviourSingleton.Instance.SetWatermarkStatus(profile, true); } } public class DebugLogoPatch2 : ModulePatch { protected override MethodBase GetTargetMethod() { return AccessTools.Method(typeof(ClientWatermark), nameof(ClientWatermark.method_0)); } [PatchPostfix] private static void patchPostfix(ref TextMeshProUGUI ____label, Profile ___profile_0) { var json = RequestHandler.GetJson("/singleplayer/settings/version"); var result = Json.Deserialize(json).Version; ____label.text = $"SPT BLEEDINGEDGE \n {result} \n {___profile_0.Nickname} \n {GClass1296.Now.ToString("HH:mm:ss")}"; } } }