shithub: pokecrystal

Download patch

ref: fe8476d6bc241a0bb40cde980693cb46d9395c91
parent: 662f442221945819dc5cc17e45639e4352517b10
author: Bryan Bishop <kanzure@gmail.com>
date: Thu Jan 10 10:52:18 EST 2013

make include_file faster in the preprocessor

--- a/preprocessor.py
+++ b/preprocessor.py
@@ -556,9 +556,9 @@
 def include_file(asm):
     """This is more reliable than rgbasm/rgbds including files on its own."""
 
-    filename = asm.split("\"")
-    filename = filename[1].replace("\"","").replace("\n","")
-    lines = open(filename, 'r').readlines()
+    filename = asm.split("\"")[1]
+
+    lines = open(filename, "r").readlines()
 
     for line in lines:
         read_line(line)
--