Skip to content

Commit b15ff32

Browse files
committedJul 12, 2024
1.1
1 parent 953f4fe commit b15ff32

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed
 

‎Makefile

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
FINALPACKAGE=1
12
TARGET := iphone:clang:latest
23
THEOS_PACKAGE_SCHEME = rootless
34

‎control

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: com.pookjw.actionbuttonenabler
22
Name: ActionButtonEnabler
3-
Version: 1.0.1
3+
Version: 1.1
44
Architecture: iphoneos-arm64
55
Description: Hello World!
66
Maintainer: pookjw

‎modules/ActionButtonEnablerPreferences/init.mm

+5-5
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#import <substrate.h>
66
#import <cstdint>
77

8-
namespace AE_PSUIPrefsListController {
8+
namespace AE_PSGGeneralController {
99
namespace viewDidLoad {
1010
void (*original)(__kindof UIViewController *self, SEL _cmd);
1111
void custom(__kindof UIViewController *self, SEL _cmd) {
@@ -16,7 +16,7 @@ void custom(__kindof UIViewController *self, SEL _cmd) {
1616
__block auto retainedSelf = self;
1717
UIBarButtonItem *item = [[UIBarButtonItem alloc] initWithPrimaryAction:[UIAction actionWithTitle:[NSString string] image:[UIImage systemImageNamed:@"button.programmable"] identifier:nil handler:^(__kindof UIAction * _Nonnull action) {
1818
__kindof UIViewController *actionButtonSettings = [NSClassFromString(@"ActionButtonSettings") new];
19-
[retainedSelf presentViewController:actionButtonSettings animated:YES completion:nil];
19+
[retainedSelf.navigationController pushViewController:actionButtonSettings animated:YES];
2020
[actionButtonSettings release];
2121
}]];
2222

@@ -57,10 +57,10 @@ void custom(__kindof UIViewController *self, SEL _cmd) {
5757
dlopen("/System/Library/PreferenceBundles/ActionButtonSettings.bundle/ActionButtonSettings", RTLD_NOW);
5858

5959
MSHookMessageEx(
60-
NSClassFromString(@"PSUIPrefsListController"),
60+
NSClassFromString(@"PSGGeneralController"),
6161
@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)
6464
);
6565

6666
MSHookMessageEx(

0 commit comments

Comments
 (0)
Please sign in to comment.