simplify load_rom in gbz80disasm

This commit is contained in:
Bryan Bishop
2013-02-03 15:18:06 -06:00
parent 82b8b5121a
commit 57200b6cf7
2 changed files with 7 additions and 8 deletions

View File

@@ -14,11 +14,8 @@ if not hasattr(json, "read"):
from romstr import RomStr
def load_rom(filename="../baserom.gbc"):
"""loads bytes into memory"""
global rom
file_handler = open(filename, "rb")
rom = RomStr(file_handler.read())
file_handler.close()
rom = RomStr.load(filename=filename)
return rom
spacing = "\t"