mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-01-23 09:16:20 -08:00
fix dbw error in MapScriptHeader and add ending newline
This commit is contained in:
parent
cb1a372d75
commit
69450ad8b3
@ -3457,9 +3457,9 @@ class MapScriptHeader:
|
|||||||
output += "\n; callback count\n"
|
output += "\n; callback count\n"
|
||||||
output += "db %d"%self.callback_count
|
output += "db %d"%self.callback_count
|
||||||
if len(self.callbacks) > 0:
|
if len(self.callbacks) > 0:
|
||||||
output += "\n\n; callbacks\n"
|
output += "\n\n; callbacks\n\n"
|
||||||
#not so sure about this next one
|
#not so sure about this next one
|
||||||
output += "\n".join(["dbw "+str(p["hook"].byte)+", "+p["callback"].to_asm() for p in self.callbacks])
|
output += "\n\n".join(["db "+str(p["hook"].byte)+"\ndw "+p["callback"].to_asm() for p in self.callbacks])
|
||||||
return output
|
return output
|
||||||
|
|
||||||
all_map_script_headers = []
|
all_map_script_headers = []
|
||||||
@ -4742,6 +4742,9 @@ class Asm:
|
|||||||
written_newlines = 0
|
written_newlines = 0
|
||||||
last = each
|
last = each
|
||||||
|
|
||||||
|
#make sure the file ends with a newline
|
||||||
|
fh.write("\n")
|
||||||
|
|
||||||
def index(seq, f):
|
def index(seq, f):
|
||||||
"""return the index of the first item in seq
|
"""return the index of the first item in seq
|
||||||
where f(item) == True."""
|
where f(item) == True."""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user