roothide support & ja.lploj update

This commit is contained in:
ichitaso
2024-07-16 19:57:22 +09:00
parent 508c927907
commit 546d3692bf
6 changed files with 254 additions and 253 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
#import <Foundation/Foundation.h>
#import <rootless.h>
#import <roothide.h>
NS_ASSUME_NONNULL_BEGIN
@@ -10,4 +10,4 @@ NS_ASSUME_NONNULL_BEGIN
@end
NS_ASSUME_NONNULL_END
NS_ASSUME_NONNULL_END
+3 -3
View File
@@ -8,12 +8,12 @@
dispatch_once(&onceToken, ^{
NSString *tweakBundlePath = [[NSBundle mainBundle] pathForResource:@"YTLite" ofType:@"bundle"];
NSString *rootlessBundlePath = ROOT_PATH_NS("/Library/Application Support/YTLite.bundle");
NSString *kBundlePath = jbroot(@"/Library/Application Support/YTLite.bundle");
bundle = [NSBundle bundleWithPath:tweakBundlePath ?: rootlessBundlePath];
bundle = [NSBundle bundleWithPath:tweakBundlePath ?: kBundlePath];
});
return bundle;
}
@end
@end