base vs future configurable patches, add amplitude redirect and signalr handshake patches, galvanic corrosion support,

This commit is contained in:
2025-03-22 21:20:04 -04:00
parent 400bd791db
commit e9a241d742
15 changed files with 472 additions and 152 deletions

View 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);
}
}
}