mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
mostly pathing improvements, mostly to benefit linux
This commit is contained in:
5
Patch.py
5
Patch.py
@@ -14,9 +14,10 @@ base_rom_bytes = None
|
||||
def get_base_rom_bytes() -> bytes:
|
||||
global base_rom_bytes
|
||||
if not base_rom_bytes:
|
||||
with open("host.yaml") as f:
|
||||
options = Utils.parse_yaml(f.read())
|
||||
options = Utils.get_options()
|
||||
file_name = options["general_options"]["rom_file"]
|
||||
if not os.path.exists(file_name):
|
||||
file_name = Utils.local_path(file_name)
|
||||
base_rom_bytes = bytes(read_rom(open(file_name, "rb")))
|
||||
|
||||
basemd5 = hashlib.md5()
|
||||
|
Reference in New Issue
Block a user