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