Skip to content

Commit fcaba93

Browse files
committed
fix: legacy compile
Signed-off-by: 82Flex <82flex@gmail.com>
1 parent 4a2be1b commit fcaba93

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ include $(THEOS)/makefiles/common.mk
1111

1212
TWEAK_NAME += XcodeAnyDebug
1313

14-
XcodeAnyDebug_FILES += main.xm
14+
XcodeAnyDebug_FILES += main.x
1515
XcodeAnyDebug_CFLAGS += -fobjc-arc
1616

1717
include $(THEOS_MAKE_PATH)/tweak.mk

main.xm renamed to main.x

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
#import <dlfcn.h>
44
#import <roothide.h>
5-
#import <HBLog.h>
65

76
#define TAG "[XcodeAnyDebug] "
87

@@ -25,7 +24,7 @@ static void* _SMJobSubmit;
2524
{
2625
NSArray* argv = mjob[@"ProgramArguments"];
2726

28-
HBLogDebug(@TAG "_SMJobSubmit argv=%@", argv);
27+
NSLog(@TAG "_SMJobSubmit argv=%@", argv);
2928

3029
if ([argv[0] hasSuffix:@"/debugserver"])
3130
{
@@ -50,7 +49,7 @@ static void* _dtdsSpawnExecutableWithOptions;
5049

5150
%hookf(Boolean, _dtdsSpawnExecutableWithOptions, const char *path, DTDSSpawnOptions *options, pid_t *pid, NSError **error)
5251
{
53-
HBLogDebug(@TAG "_dtdsSpawnExecutableWithOptions path=%s", path);
52+
NSLog(@TAG "_dtdsSpawnExecutableWithOptions path=%s", path);
5453

5554
if ([[NSString stringWithUTF8String:path] hasSuffix:@"/debugserver"])
5655
{
@@ -74,7 +73,7 @@ static void* _dtdsSpawnExecutableWithOptions;
7473
break;
7574
}
7675
}
77-
HBLogDebug(@TAG "isDtds=%@", isDtds ? @"YES" : @"NO");
76+
NSLog(@TAG "isDtds=%@", isDtds ? @"YES" : @"NO");
7877
if (isDtds) {
7978
_dtdsSpawnExecutableWithOptions = dlsym(RTLD_DEFAULT, "dtdsSpawnExecutableWithOptions");
8079
%init(Dtds);

0 commit comments

Comments
 (0)