You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
555 B
19 lines
555 B
import os, subprocess
|
|
from pathlib import Path
|
|
|
|
from clishared import cli_patch_rom, cli_choose_patches
|
|
|
|
print("ThinkPad X230 Bios Patcher v1")
|
|
|
|
project_name = input("Where is your project folder? ")
|
|
project_name = project_name.replace("\\", "") # Remove backslashes so I can drag and drop folders
|
|
project_path = Path(project_name).resolve()
|
|
|
|
patched_path = project_path / "patched"
|
|
clean_path = project_path / "clean"
|
|
|
|
if not patched_path.exists():
|
|
patched_path.mkdir()
|
|
|
|
patches = cli_choose_patches()
|
|
cli_patch_rom(patches, clean_path, patched_path)
|