Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion PlayTools/MysticRunes/PlayShadow.m
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ + (void) load {
if ([[NSProcessInfo processInfo].environment[@"USE_EXTRA_ANTIJB"] isEqualToString:@"1"]) {
[self loadJailbreakBypass];
}
// if ([[PlaySettings shared] bypass]) [self loadEnvironmentBypass]; # disabled as it might be too powerful
if ([[PlaySettings shared] bypass]) [self loadEnvironmentBypass];

// Swizzle ATTrackingManager
[objc_getClass("ATTrackingManager") swizzleClassMethod:@selector(requestTrackingAuthorizationWithCompletionHandler:) withMethod:@selector(pm_return_2_with_completion_handler:)];
Expand Down Expand Up @@ -338,6 +338,7 @@ + (void) loadEnvironmentBypass {
[self debugLogger:@"Environment bypass loading"];
// Completely nuke everything in the environment variables
[objc_getClass("NSProcessInfo") swizzleInstanceMethod:@selector(environment) withMethod:@selector(pm_return_empty_dictionary)];
[objc_getClass("NSProcessInfo") swizzleInstanceMethod:@selector(isiOSAppOnMac) withMethod:@selector(pm_return_false)];
}

+ (void) debugLogger: (NSString *) message {
Expand Down
Loading