switch from "r" to "rb" when reading the ROM for Microsoft Windows users

This commit is contained in:
Bryan Bishop 2012-04-20 10:34:07 -05:00
parent 7114385997
commit 628a147578

View File

@ -241,7 +241,7 @@ rom = RomStr(None)
def direct_load_rom(filename="../baserom.gbc"):
"""loads bytes into memory"""
global rom
file_handler = open(filename, "r")
file_handler = open(filename, "rb")
rom = RomStr(file_handler.read())
file_handler.close()
return rom