sys_patch.py: Add patch set info to root

This commit is contained in:
Mykola Grymalyuk
2022-05-05 11:35:03 -06:00
parent 1e6eec3bda
commit 49ee43f6ed
4 changed files with 31 additions and 2 deletions
+2 -1
View File
@@ -44,7 +44,8 @@ class OpenCoreLegacyPatcher:
if utilities.check_cli_args() is not None:
print("- Detected arguments, switching to CLI mode")
self.constants.gui_mode = True # Assumes no user interaction is required
if "--auto_patch" not in sys.argv:
ignore_args = ["--auto_patch", "--gui_patch", "--gui_unpatch"]
if not any(x in sys.argv for x in ignore_args):
self.constants.current_path = Path.cwd()
if getattr(sys, "frozen", False) and hasattr(sys, "_MEIPASS"):
print("- Rerouting payloads location")