shithub: pokecrystal

Download patch

ref: 133bcb70498f53cef584016615156cbe5bb7b447
parent: 0721bd42e15d60af7c259da86f11effacc6aa636
author: Bryan Bishop <[email protected]>
date: Fri May 4 16:13:35 EDT 2012

handle $57 in MainText.to_asm

--- a/extras/crystal.py
+++ b/extras/crystal.py
@@ -1897,6 +1897,21 @@
                 new_line  = True
                 was_comma = False
                 end       = True
+            elif byte == 0x57:
+                # close any quotes
+                if in_quotes:
+                    output += "\""
+                    was_comma = False
+
+                if not was_comma:
+                    output += ", "
+
+                output += "$57\n"
+
+                in_quotes = False
+                new_line  = True
+                was_comma = False
+                end       = True
             elif byte in chars.keys():
                 # figure out what the character actually is
                 char = chars[byte]