shithub: pokecrystal

Download patch

ref: c8cdbdede160ae1002a2c5a492dcda9f20b0945d
parent: 759c55d3f2cea4a8b09943ee7c3cb95d9cc5423e
author: Bryan Bishop <[email protected]>
date: Wed Apr 25 14:18:14 EDT 2012

oops, make MapScriptHeader and others show up again

--- a/extras/crystal.py
+++ b/extras/crystal.py
@@ -4691,7 +4691,10 @@
                 current_requested_newlines_before = 0
                 current_requested_newlines_after  = 1
             elif isinstance(each, AsmSection) or isinstance(each, Incbin) or hasattr(each, "to_asm"):
-                asm = each.to_asm()
+                if isinstance(each, AsmSection) or isinstance(each, Incbin):
+                    asm = each.to_asm()
+                else:
+                    asm = to_asm(each)
                 current_requested_newlines_before = 2
                 current_requested_newlines_after  = 2
             else: