chore: le fail (#6)

This commit is contained in:
Vlad Frangu 2023-11-12 21:19:07 +02:00 • committed by GitHub
parent b272fc0567
commit 2e8f987bee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -8,11 +8,7 @@ let source = URL(string: "vendetta")!
let install_prefix = String(cString: get_install_prefix())
let isJailbroken = FileManager.default.fileExists(atPath: "\(install_prefix)/Library/Application Support/VendettaTweak/VendettaPatches.bundle")
let vendettaPatchesBundlePath = if isJailbroken {
"\(install_prefix)/Library/Application Support/VendettaTweak/VendettaPatches.bundle"
} else {
"\(Bundle.main.bundleURL.path)/VendettaPatches.bundle"
}
let vendettaPatchesBundlePath = isJailbroken ? "\(install_prefix)/Library/Application Support/VendettaTweak/VendettaPatches.bundle" : "\(Bundle.main.bundleURL.path)/VendettaPatches.bundle"
class FileManagerLoadHook: ClassHook<FileManager> {
func containerURLForSecurityApplicationGroupIdentifier(_ groupIdentifier: NSString?) -> URL? {