forked from ahmadhashemi/vizoForever
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTweak.xm
43 lines (24 loc) · 767 Bytes
/
Tweak.xm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
@interface SettingViewController
- (void)unityAdsReady:(id)arg1;
- (void)unityAdsDidFinish:(id)arg1 withFinishState:(long long)arg2;
- (void)addMore:(id)arg1;
@end
@interface ViewController
- (void)closePopup:(id)arg1;
@end
%hook SettingViewController
-(void)viewDidAppear:(BOOL)animated {
%orig;
[self unityAdsReady:nil]; // To immediately make add more button ready to tap.
}
- (void)addMore:(id)arg1 {
[self unityAdsDidFinish:nil withFinishState:0]; // Call what will be called when ad finishes.
}
-(void)showResultPopup {} // Showing an alert each time is annoying. Isn't it?
%end
%hook ViewController
-(void)viewWillAppear:(BOOL)animated {
%orig;
[self closePopup:nil]; // show an alert EVERY TIME user opens application? oh boy :|
}
%end