[Scummvm-cvs-logs] SF.net SVN: scummvm: [30017] tools/branches/gsoc2007-decompiler/finalD/ decompiler.py

fingolfin at users.sourceforge.net fingolfin at users.sourceforge.net
Fri Dec 28 00:08:51 CET 2007


Revision: 30017
          http://scummvm.svn.sourceforge.net/scummvm/?rev=30017&view=rev
Author:   fingolfin
Date:     2007-12-27 15:08:51 -0800 (Thu, 27 Dec 2007)

Log Message:
-----------
Open script files in binary mode (thanks to Andreas Muegge for reporting this)

Modified Paths:
--------------
    tools/branches/gsoc2007-decompiler/finalD/decompiler.py

Modified: tools/branches/gsoc2007-decompiler/finalD/decompiler.py
===================================================================
--- tools/branches/gsoc2007-decompiler/finalD/decompiler.py	2007-12-27 17:47:31 UTC (rev 30016)
+++ tools/branches/gsoc2007-decompiler/finalD/decompiler.py	2007-12-27 23:08:51 UTC (rev 30017)
@@ -95,7 +95,7 @@
         exit(2)
 
     try:
-        f = open(args[1], 'r')
+        f = open(args[1], 'rb')
         data_arr = array.array('B', f.read())
         if version in (3,4,5):
             sc = scumm.SCUMM345(data_arr, version,


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list