mirror of
https://github.com/NohamR/pyzule-rw.git
synced 2026-10-10 18:39:41 +00:00
refactor: move orion check out of loop
This commit is contained in:
@@ -19,7 +19,7 @@ class Executable:
|
|||||||
# CydiaSubstrate.framework, libsubstrate.dylib, EVEN CydiaSubstrate.dylib
|
# CydiaSubstrate.framework, libsubstrate.dylib, EVEN CydiaSubstrate.dylib
|
||||||
# AND PROBABLY EVEN MORE !!!! IT'S CRAZY.
|
# AND PROBABLY EVEN MORE !!!! IT'S CRAZY.
|
||||||
common = {
|
common = {
|
||||||
"ubstrate.": {
|
"substrate.": {
|
||||||
"name": "CydiaSubstrate.framework",
|
"name": "CydiaSubstrate.framework",
|
||||||
"path": "@rpath/CydiaSubstrate.framework/CydiaSubstrate"
|
"path": "@rpath/CydiaSubstrate.framework/CydiaSubstrate"
|
||||||
},
|
},
|
||||||
@@ -93,11 +93,6 @@ class Executable:
|
|||||||
|
|
||||||
needed.add(common)
|
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:
|
def fix_dependencies(self, tweaks: dict[str, str]) -> None:
|
||||||
for dep in self.get_dependencies():
|
for dep in self.get_dependencies():
|
||||||
for cname in tweaks:
|
for cname in tweaks:
|
||||||
|
|||||||
@@ -92,6 +92,11 @@ class MainExecutable(Executable):
|
|||||||
if not existed:
|
if not existed:
|
||||||
print(f"[*] injected {bn}")
|
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:
|
for missing in needed:
|
||||||
real = self.common[missing]["name"] # e.g. "Orion.framework"
|
real = self.common[missing]["name"] # e.g. "Orion.framework"
|
||||||
ip = f"{FRAMEWORKS_DIR}/{real}"
|
ip = f"{FRAMEWORKS_DIR}/{real}"
|
||||||
|
|||||||
Reference in New Issue
Block a user