mirror of
https://github.com/YTLitePlus/YTLitePlus.git
synced 2026-04-18 16:32:05 +00:00
YTLitePlus/YTLitePlus has been deprecated. This replaces the entire codebase with the active upstream project dayanch96/YTLite. https://claude.ai/code/session_01FD8kBzc7yv5Fdf9G7Z2ZkE
19 lines
508 B
Objective-C
19 lines
508 B
Objective-C
#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 *kBundlePath = jbroot(@"/Library/Application Support/YTLite.bundle");
|
|
|
|
bundle = [NSBundle bundleWithPath:tweakBundlePath ?: kBundlePath];
|
|
});
|
|
|
|
return bundle;
|
|
}
|
|
|
|
@end
|