You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-09-08 08:13:02 -07:00
simplify load_rom in gbz80disasm
This commit is contained in:
@@ -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"
|
||||
|
Reference in New Issue
Block a user