base vs future configurable patches, add amplitude redirect and signalr handshake patches, galvanic corrosion support,
This commit is contained in:
21
BasePatches/GenuinePatch.cs
Normal file
21
BasePatches/GenuinePatch.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using HarmonyLib;
|
||||
using System.Reflection;
|
||||
|
||||
namespace undead_universal_patch_il2cpp.Patches
|
||||
{
|
||||
[HarmonyPatch]
|
||||
class GenuinePatch
|
||||
{
|
||||
static readonly MethodInfo methodType = AccessTools.Method(AccessTools.TypeByName("Application"), "get_productName");
|
||||
static bool Prepare()
|
||||
{
|
||||
if (methodType == null) return false;
|
||||
else return true;
|
||||
}
|
||||
static MethodBase TargetMethod() => methodType;
|
||||
static void Prefix(ref string __result)
|
||||
{
|
||||
__result = string.Format("{0} (Custom Server)", __result);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user