Files
undead-universal-patch-il2cpp/Patches/ImageSignature.cs

31 lines
805 B
C#

using System;
using HarmonyLib;
using System.Reflection;
using undead_universal_patch_il2cpp.Core;
using undead_universal_patch_il2cpp.Core.Config;
namespace undead_universal_patch_il2cpp.Patches
{
[HarmonyPatch]
public class ImageSignaturePatch
{
static PatchTypesResult patchResult = Util.ConfigPreparePatchTypes(
PatchConfig.ImageSignaturePatch,
"Image signature patch",
"RecNet.Images",
"VerifySignature"
);
static bool Prepare() => patchResult.Success;
static MethodBase TargetMethod() => patchResult.Method;
static bool Prefix(ref bool __result)
{
Util.ConditionalDebug("Verified image signature");
__result = true;
return false;
}
}
}