summaryrefslogtreecommitdiff
path: root/crystal.py
diff options
context:
space:
mode:
authorBryan Bishop <kanzure@gmail.com>2012-04-02 12:44:23 -0500
committerBryan Bishop <kanzure@gmail.com>2012-04-02 12:44:23 -0500
commit00391b746ae4aa2a11d1c4742f96f85b67858513 (patch)
treeb8d25ea39f6dc8bf06d0263a788830c3a82a723a /crystal.py
parentc91755d4c318ad6fa9ececeaf360efb9f46b7312 (diff)
fix bug in generate_map_constant_labels
original-commit-id: d23ab7500bcc81eb97b658a6ce2a28c8106644b4
Diffstat (limited to 'crystal.py')
-rw-r--r--crystal.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/crystal.py b/crystal.py
index b795965..b746d2b 100644
--- a/crystal.py
+++ b/crystal.py
@@ -1202,6 +1202,7 @@ def generate_map_constant_labels():
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").\
@@ -5847,6 +5848,12 @@ def write_all_labels(all_labels, filename="labels.json"):
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"""
global all_labels