This commit is contained in:
dayanch96
2024-03-06 22:11:32 +03:00
parent bde14ad82b
commit 5bce5a7e33
24 changed files with 1519 additions and 1132 deletions
+19
View File
@@ -0,0 +1,19 @@
#import "NSBundle+YTLite.h"
@implementation NSBundle (YTLite)
+ (NSBundle *)ytl_defaultBundle {
static NSBundle *bundle = nil;
static dispatch_once_t onceToken;
dispatch_once(&onceToken, ^{
NSString *tweakBundlePath = [[NSBundle mainBundle] pathForResource:@"YTLite" ofType:@"bundle"];
NSString *rootlessBundlePath = ROOT_PATH_NS("/Library/Application Support/YTLite.bundle");
bundle = [NSBundle bundleWithPath:tweakBundlePath ?: rootlessBundlePath];
});
return bundle;
}
@end