From 628a1475785bf3f4dabf96787b84170736c109d5 Mon Sep 17 00:00:00 2001 From: Bryan Bishop Date: Fri, 20 Apr 2012 10:34:07 -0500 Subject: [PATCH] switch from "r" to "rb" when reading the ROM for Microsoft Windows users --- extras/crystal.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extras/crystal.py b/extras/crystal.py index 4a5ed443c..30d73cc3c 100644 --- a/extras/crystal.py +++ b/extras/crystal.py @@ -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