ref: d23ab7500bcc81eb97b658a6ce2a28c8106644b4
parent: 29a3fbf75b17c0af8b3d9a51c382561bd0a0f2c1
author: Bryan Bishop <[email protected]>
date: Mon Apr 2 08:44:23 EDT 2012
fix bug in generate_map_constant_labels
--- a/extras/crystal.py
+++ b/extras/crystal.py
@@ -1202,6 +1202,7 @@
i = 0
for map_group in map_names.keys():
for map_id in map_names[map_group].keys():
+ if map_id == "offset": continue
cmap = map_names[map_group][map_id]
name = cmap["name"]
name = name.replace("Pokémon Center", "PokeCenter").\
@@ -5846,6 +5847,12 @@
fh.write(json.dumps(all_labels))
fh.close()
return True
+
+#TODO: implement get_ram_label
+def get_ram_label(address):
+ """not implemented yet.. supposed to get a label for a particular RAM location
+ like W_PARTYPOKE1HP"""
+ return None
def get_label_for(address):
"""returns a label assigned to a particular address"""