mostly pathing improvements, mostly to benefit linux

This commit is contained in:
Fabian Dill
2020-03-15 19:32:00 +01:00
parent 2a05b9cd72
commit 031d6823a1
4 changed files with 36 additions and 18 deletions

View File

@@ -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()