Internal add hash to login form for all logins, fix registration patch

This commit is contained in:
2025-09-21 17:42:06 -04:00
parent 584f19b016
commit 10e8797ba2
4 changed files with 48 additions and 13 deletions

View File

@@ -10,22 +10,15 @@ namespace undead_universal_patch_il2cpp.Patches
{
static PatchTypesResult patchResult = Util.ConfigPreparePatchTypes(
PatchConfig.RegistrationPatch,
"Registration patch (to be vetted, might not work)",
"UnityEngine.PlayerPrefs",
"GetInt"
"Registration patch",
"ProfileWatchUIFlow",
"Button_Email"
);
static bool Prepare() => patchResult.Success;
static MethodInfo TargetMethod() => patchResult.Method;
static void Postfix(ref string key, ref int defaultValue, ref int __result)
{
if (key.StartsWith("IncompleteRegistration-"))
{
__result = 0;
UniversalPatchPlugin.Log.LogInfo("Detour'd IncompleteRegistration pref key");
}
}
static bool Prefix() => false;
}
}