Skip to content

Commit 2f1e950

Browse files
committed
bugfix: libsubstrate or libsubstitute
Signed-off-by: 82Flex <[email protected]>
1 parent 3757a02 commit 2f1e950

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

TrollFools/Injector.swift

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,10 +345,16 @@ class Injector {
345345
NSLocalizedDescriptionKey: String(format: NSLocalizedString("Failed to parse Mach-O file: %@.", comment: ""), target.path),
346346
])
347347
}
348+
348349
for dylib in dylibs {
349-
guard dylib.hasSuffix("/CydiaSubstrate") else {
350+
guard (dylib.hasSuffix("/CydiaSubstrate") ||
351+
dylib.hasSuffix("/libsubstrate.dylib") ||
352+
dylib.hasSuffix("/libsubstitute.dylib") ||
353+
dylib.hasSuffix("/libellekit.dylib"))
354+
else {
350355
continue
351356
}
357+
352358
try _applyChange(target, from: dylib, to: "@executable_path/Frameworks/CydiaSubstrate.framework/CydiaSubstrate")
353359
}
354360
}

0 commit comments

Comments
 (0)