From 1129d71e2ccd3bfe4d635cf7d280a300c0338b09 Mon Sep 17 00:00:00 2001 From: yenatch Date: Sun, 23 Mar 2014 02:19:38 -0400 Subject: get_label_for: Return a label or None. Don't return an address and call it a label. --- pokemontools/crystal.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/pokemontools/crystal.py b/pokemontools/crystal.py index 0076f67..697960c 100644 --- a/pokemontools/crystal.py +++ b/pokemontools/crystal.py @@ -7095,12 +7095,7 @@ def get_label_for(address): else: return "AlreadyParsedNoDefaultUnknownLabel_" + hex(address) - #return "NotYetParsed_"+hex(address) - if address > 0x7FFF: - value = 0x4000 + (address % 0x4000) - return "$%.2x"%(value) - else: - return "$%.2x"%(address) + return None # all_new_labels is a temporary replacement for all_labels, # at least until the two approaches are merged in the code base. -- cgit v1.2.3