You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-09-08 08:13:02 -07:00
switch from "r" to "rb" when reading the ROM for Microsoft Windows users
This commit is contained in:
@@ -241,7 +241,7 @@ rom = RomStr(None)
|
|||||||
def direct_load_rom(filename="../baserom.gbc"):
|
def direct_load_rom(filename="../baserom.gbc"):
|
||||||
"""loads bytes into memory"""
|
"""loads bytes into memory"""
|
||||||
global rom
|
global rom
|
||||||
file_handler = open(filename, "r")
|
file_handler = open(filename, "rb")
|
||||||
rom = RomStr(file_handler.read())
|
rom = RomStr(file_handler.read())
|
||||||
file_handler.close()
|
file_handler.close()
|
||||||
return rom
|
return rom
|
||||||
|
Reference in New Issue
Block a user