File tree 1 file changed +4
-7
lines changed
1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -2667,13 +2667,10 @@ NSBundle *YouTubeRebornBundle() {
2667
2667
static dispatch_once_t onceToken;
2668
2668
dispatch_once(&onceToken, ^{
2669
2669
NSString *tweakBundlePath = [[NSBundle mainBundle] pathForResource:@"YouTubeReborn" ofType:@"bundle"];
2670
- char resolvedPath[PATH_MAX];
2671
- const char *rootPath = libroot_dyn_jbrootpath("/Library/Application Support/YouTubeReborn.bundle", resolvedPath);
2672
- if (tweakBundlePath) {
2673
- bundle = [NSBundle bundleWithPath:[NSString stringWithUTF8String:rootPath]];
2674
- } else {
2675
- bundle = [NSBundle bundleWithPath:@"/Library/Application Support/YouTubeReborn.bundle"];
2676
- }
2670
+ if (tweakBundlePath)
2671
+ bundle = [NSBundle bundleWithPath:tweakBundlePath];
2672
+ else
2673
+ bundle = [NSBundle bundleWithPath:JBROOT_PATH_NSSTRING(@"/Library/Application Support/YouTubeReborn.bundle")];
2677
2674
});
2678
2675
return bundle;
2679
2676
}
You can’t perform that action at this time.
0 commit comments