mirror of
https://github.com/Faraphel/Atlas-Install.git
synced 2025-07-03 19:28:25 +02:00
14 lines
No EOL
426 B
Python
14 lines
No EOL
426 B
Python
import subprocess
|
|
from . import error
|
|
|
|
WSTRT_PATH = "./tools/szs/wstrt"
|
|
|
|
|
|
@error.better_wszst_error(wszst_tools=WSTRT_PATH)
|
|
def patch(path: str) -> None:
|
|
"""
|
|
Patch the main.dol file
|
|
:param path: path to the game
|
|
"""
|
|
subprocess.run([WSTRT_PATH, "patch", path + "/sys/main.dol", "--clean-dol", "--add-lecode"],
|
|
creationflags=subprocess.CREATE_NO_WINDOW, check=True, stdout=subprocess.PIPE) |