From a05e2621237e1b701e2cefcb70751f7b815c58cd Mon Sep 17 00:00:00 2001 From: ohaiibuzzle <23693150+ohaiibuzzle@users.noreply.github.com> Date: Tue, 25 Aug 2026 17:55:28 +0700 Subject: [PATCH] fix: report to apps that age verification isn't available --- PlayTools/MysticRunes/PlayShadow.m | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/PlayTools/MysticRunes/PlayShadow.m b/PlayTools/MysticRunes/PlayShadow.m index b30fdb90..4f24f1d6 100644 --- a/PlayTools/MysticRunes/PlayShadow.m +++ b/PlayTools/MysticRunes/PlayShadow.m @@ -186,7 +186,8 @@ + (void) load { // Swizzle ATTrackingManager [objc_getClass("ATTrackingManager") swizzleClassMethod:@selector(requestTrackingAuthorizationWithCompletionHandler:) withMethod:@selector(pm_return_2_with_completion_handler:)]; [objc_getClass("ATTrackingManager") swizzleClassMethod:@selector(trackingAuthorizationStatus) withMethod:@selector(pm_return_2)]; - + + // canResizeToFitContent // [objc_getClass("UIWindow") swizzleInstanceMethod:@selector(canResizeToFitContent) withMethod:@selector(pm_return_true)]; @@ -197,6 +198,11 @@ + (void) load { [self debugLogger:@"loading UIAlertController bypass"]; [objc_getClass("UIViewController") swizzleInstanceMethod:@selector(presentViewController:animated:completion:) withMethod:@selector(pm_endfield_presentViewController:animated:completion:)]; } + + if ([bundleID isEqualToString:@"com.kurogame.wutheringwaves.global"] || [bundleID isEqualToString:@"com.kurogame.mingchao"]) { + [objc_getClass("KRDeclaredAgeRangeService") swizzleInstanceMethod:@selector(isAgeRangeRequestAvailable) withMethod:@selector(pm_return_false)]; + } + } + (void) loadJailbreakBypass {