5
5
#import < substrate.h>
6
6
#import < cstdint>
7
7
8
- namespace AE_PSUIPrefsListController {
8
+ namespace AE_PSGGeneralController {
9
9
namespace viewDidLoad {
10
10
void (*original)(__kindof UIViewController *self, SEL _cmd);
11
11
void custom (__kindof UIViewController *self, SEL _cmd) {
@@ -16,7 +16,7 @@ void custom(__kindof UIViewController *self, SEL _cmd) {
16
16
__block auto retainedSelf = self;
17
17
UIBarButtonItem *item = [[UIBarButtonItem alloc ] initWithPrimaryAction: [UIAction actionWithTitle: [NSString string ] image: [UIImage systemImageNamed: @" button.programmable" ] identifier: nil handler: ^(__kindof UIAction * _Nonnull action) {
18
18
__kindof UIViewController *actionButtonSettings = [NSClassFromString (@" ActionButtonSettings" ) new ];
19
- [retainedSelf presentViewController : actionButtonSettings animated: YES completion: nil ];
19
+ [retainedSelf.navigationController pushViewController : actionButtonSettings animated: YES ];
20
20
[actionButtonSettings release ];
21
21
}]];
22
22
@@ -57,10 +57,10 @@ void custom(__kindof UIViewController *self, SEL _cmd) {
57
57
dlopen (" /System/Library/PreferenceBundles/ActionButtonSettings.bundle/ActionButtonSettings" , RTLD_NOW);
58
58
59
59
MSHookMessageEx (
60
- NSClassFromString (@" PSUIPrefsListController " ),
60
+ NSClassFromString (@" PSGGeneralController " ),
61
61
@selector(viewDidLoad),
62
- reinterpret_cast<IMP>(&AE_PSUIPrefsListController ::viewDidLoad::custom),
63
- reinterpret_cast<IMP *>(&AE_PSUIPrefsListController ::viewDidLoad::original)
62
+ reinterpret_cast<IMP>(&AE_PSGGeneralController ::viewDidLoad::custom),
63
+ reinterpret_cast<IMP *>(&AE_PSGGeneralController ::viewDidLoad::original)
64
64
);
65
65
66
66
MSHookMessageEx (
0 commit comments