Hi all,
I have make tweak Mod menu for game Pubg Mobile but when game start tweak menu not show, i have changed some name class "AppController, UnityAppController, GameDelegate.." but not work.
Makefile:
ARCHS = armv7 arm64
CFLAGS = -fobjc-arc # ARC is needed for SCLAlertView
include $(THEOS)/makefiles/common.mk
TWEAK_NAME = Pubg
Pubg_FILES = Tweak.xm $(shell find $(THEOS)/include/SCLAlertView -name '*.m')
Pubg_FRAMEWORKS = UIKit MessageUI Social QuartzCore CoreGraphics Foundation AVFoundation Accelerate GLKit AudioToolbox
Pubg_LDFLAGS += -Wl,-segalign,4000
include $(THEOS_MAKE_PATH)/tweak.mk
after-install::
install.exec "killall -9 SpringBoard"
Tweak.xm
// TestAlert for Theos by @iiS4iF
// https://github.com/iis4if/TestAlert
#import <UIKit/UIKit.h>
#import <SCLAlertView/SCLAlertView.h>
#import <CoreGraphics/CoreGraphics.h>
#import <Accounts/Accounts.h>
#import <Social/Social.h>
#import <AVFoundation/AVFoundation.h>
%hook PubgAppDelegate
- (void)applicationDidBecomeActive:(id)arg1 {
%orig;
if (![[NSUserDefaults standardUserDefaults] objectForKey:@"FirstRun"]) {
SCLAlertView *SCalert = [[SCLAlertView alloc] initWithNewWindow];
SCalert.backgroundType = SCLAlertViewBackgroundBlur;
[SCalert showNotice:@"TestAlert" subTitle:@"Using SCLAlertView for $TEOS 💯" closeButtonTitle:@"👍🏼" duration:0.0f];
[[NSUserDefaults standardUserDefaults] setValue:@"1strun" forKey:@"FirstRun"];
[[NSUserDefaults standardUserDefaults] synchronize];
}
}
%end
hope to receive your help soon. tks so much