diff --git a/cyan/tbhtypes/executable.py b/cyan/tbhtypes/executable.py index 55b3eea..b2c3896 100644 --- a/cyan/tbhtypes/executable.py +++ b/cyan/tbhtypes/executable.py @@ -19,7 +19,7 @@ class Executable: # CydiaSubstrate.framework, libsubstrate.dylib, EVEN CydiaSubstrate.dylib # AND PROBABLY EVEN MORE !!!! IT'S CRAZY. common = { - "ubstrate.": { + "substrate.": { "name": "CydiaSubstrate.framework", "path": "@rpath/CydiaSubstrate.framework/CydiaSubstrate" }, @@ -93,11 +93,6 @@ def fix_common_dependencies(self, needed: set[str]) -> None: needed.add(common) - # orion has a *weak* dependency to substrate, - # but will still crash without it. nice !!!!!!!!!!! - if common == "orion.": - needed.add("ubstrate.") - def fix_dependencies(self, tweaks: dict[str, str]) -> None: for dep in self.get_dependencies(): for cname in tweaks: diff --git a/cyan/tbhtypes/main_executable.py b/cyan/tbhtypes/main_executable.py index ac0a8e9..954cfc6 100644 --- a/cyan/tbhtypes/main_executable.py +++ b/cyan/tbhtypes/main_executable.py @@ -92,6 +92,11 @@ def inject(self, tweaks: dict[str, str], tmpdir: str) -> None: if not existed: print(f"[*] injected {bn}") + # orion has a *weak* dependency to substrate, + # but will still crash without it. nice !!!!!!!!!!! + if "orion." in needed: + needed.add("substrate.") + for missing in needed: real = self.common[missing]["name"] # e.g. "Orion.framework" ip = f"{FRAMEWORKS_DIR}/{real}"