diff options
author | Bryan Bishop <kanzure@gmail.com> | 2013-02-03 15:18:06 -0600 |
---|---|---|
committer | Bryan Bishop <kanzure@gmail.com> | 2013-02-03 15:18:06 -0600 |
commit | 57200b6cf75040b9696ae54bdac69d5e452a2c48 (patch) | |
tree | e9348cc66d6f350136e3b72c4450e31c89a5aff8 /extras/gbz80disasm.py | |
parent | 82b8b5121a574b6e29c72a95fd305134fd0a08cf (diff) |
simplify load_rom in gbz80disasm
Diffstat (limited to 'extras/gbz80disasm.py')
-rw-r--r-- | extras/gbz80disasm.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/extras/gbz80disasm.py b/extras/gbz80disasm.py index 088a32f74..d22f152f1 100644 --- a/extras/gbz80disasm.py +++ b/extras/gbz80disasm.py @@ -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" |