Skip to content

Commit 519fcf8

Browse files
Update Tweak.xm
1 parent 55b61a2 commit 519fcf8

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

Tweak.xm

+4-7
Original file line numberDiff line numberDiff line change
@@ -2667,13 +2667,10 @@ NSBundle *YouTubeRebornBundle() {
26672667
static dispatch_once_t onceToken;
26682668
dispatch_once(&onceToken, ^{
26692669
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")];
26772674
});
26782675
return bundle;
26792676
}

0 commit comments

Comments
 (0)