shithub: pokecrystal

Download patch

ref: 628a1475785bf3f4dabf96787b84170736c109d5
parent: 7114385997599104c259c378c656273b2486a54b
author: Bryan Bishop <[email protected]>
date: Fri Apr 20 06:34:07 EDT 2012

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

--- a/extras/crystal.py
+++ b/extras/crystal.py
@@ -241,7 +241,7 @@
 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