update uYouPlus.xm

This commit is contained in:
qnblackcat
2022-10-19 22:05:17 +07:00
parent bcac2c1931
commit b4094e0c07
+4 -1
View File
@@ -29,8 +29,11 @@ NSBundle *uYouPlusBundle() {
NSString *tweakBundlePath = [[NSBundle mainBundle] pathForResource:@"uYouPlus" ofType:@"bundle"]; NSString *tweakBundlePath = [[NSBundle mainBundle] pathForResource:@"uYouPlus" ofType:@"bundle"];
if (tweakBundlePath) if (tweakBundlePath)
bundle = [NSBundle bundleWithPath:tweakBundlePath]; bundle = [NSBundle bundleWithPath:tweakBundlePath];
else else {
bundle = [NSBundle bundleWithPath:@"/Library/Application Support/uYouPlus.bundle"]; bundle = [NSBundle bundleWithPath:@"/Library/Application Support/uYouPlus.bundle"];
if (!bundle)
bundle = [NSBundle bundleWithPath:@"/var/jb/Library/Application Support/uYouPlus.bundle"];
}
}); });
return bundle; return bundle;
} }