diff options
author | Bryan Bishop <kanzure@gmail.com> | 2013-11-23 03:40:29 -0600 |
---|---|---|
committer | Bryan Bishop <kanzure@gmail.com> | 2013-11-23 03:40:29 -0600 |
commit | de5d9bb1564177dd011398a5651c169c1728ee40 (patch) | |
tree | b5a3a746054f28465685f86421ec6f7d44909f47 | |
parent | b7c36a0c072390ccb8e5dc2d8ee0605601da8508 (diff) |
sigh, use a global for caching parsed status
-rw-r--r-- | pokemontools/crystal.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pokemontools/crystal.py b/pokemontools/crystal.py index 2b16284..eb88b6b 100644 --- a/pokemontools/crystal.py +++ b/pokemontools/crystal.py @@ -7006,6 +7006,7 @@ def parse_rom(rom=None): # improve duplicate trainer names make_trainer_group_name_trainer_ids(trainer_group_table) + global rom_parsed rom_parsed = True return map_names @@ -7014,6 +7015,7 @@ def cachably_parse_rom(rom=None): """ Calls parse_rom if it hasn't been called and completed yet. """ + global rom_parsed if not rom_parsed: return parse_rom(rom=rom) else: |