diff options
author | Bryan Bishop <kanzure@gmail.com> | 2013-09-01 20:20:30 -0700 |
---|---|---|
committer | Bryan Bishop <kanzure@gmail.com> | 2013-09-01 20:20:30 -0700 |
commit | 49a51a093c306a3aaa796da057a3b12beadd781e (patch) | |
tree | afe9e55e917739e3f48efb60684313ffb661e7a6 | |
parent | 2e6d805aea27741bc0e6097bd52c6f2b6d176b74 (diff) | |
parent | 021ecb1124813ba71f7e7182febd8bf86970ffdf (diff) |
Merge pull request #8 from kanzure/september-cleanup
Minor wram.py fix
-rw-r--r-- | pokemontools/wram.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pokemontools/wram.py b/pokemontools/wram.py index 5352fb4..5a5fa75 100644 --- a/pokemontools/wram.py +++ b/pokemontools/wram.py @@ -72,7 +72,7 @@ def read_wram_sections(): wram_sections = read_wram_sections() -def make_wram_labels(): +def make_wram_labels(wram_sections): wram_labels = {} for section in wram_sections: for label in section['labels']: @@ -81,7 +81,7 @@ def make_wram_labels(): wram_labels[label['address']] += [label['label']] return wram_labels -wram_labels = make_wram_labels() +wram_labels = make_wram_labels(wram_sections) def constants_to_dict(constants): return dict((eval(constant[constant.find('EQU')+3:constant.find(';')].replace('$','0x')), constant[:constant.find('EQU')].strip()) for constant in constants) |