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.
21 lines
492 B
21 lines
492 B
import os, subprocess
|
|
from pathlib import Path
|
|
|
|
from clishared import cli_split_rom, cli_write_rom
|
|
|
|
print("ThinkPad X230 Bios Writer v1")
|
|
|
|
project_name = input("Where is your project folder? ")
|
|
project_path = Path(project_name).resolve()
|
|
|
|
patched_path = project_path / "patched"
|
|
clean_path = project_path / "clean"
|
|
|
|
cli_split_rom(patched_path)
|
|
|
|
cli_write_rom("bottom", patched_path)
|
|
# Bell to remind user to move clip
|
|
print("\a", end="")
|
|
cli_write_rom("top", patched_path)
|
|
|
|
print("All done.")
|