summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBryan Bishop <kanzure@gmail.com>2013-11-22 21:12:30 -0600
committerBryan Bishop <kanzure@gmail.com>2013-11-22 21:12:30 -0600
commit7413d97cd85b15131883a9cb694ce69116af59f3 (patch)
tree96aa5b0357bd6b511f21a7a4d7932a53542e8252
parent8fe3f149d0fd665fc70a0646dad8dfc7aa55ef89 (diff)
rename main -> parse_rom
-rw-r--r--pokemontools/crystal.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/pokemontools/crystal.py b/pokemontools/crystal.py
index e763b55..0565a1c 100644
--- a/pokemontools/crystal.py
+++ b/pokemontools/crystal.py
@@ -6596,7 +6596,7 @@ def list_texts_in_bank(bank):
Narrows down the list of objects that you will be inserting into Asm.
"""
if len(all_texts) == 0:
- raise Exception("all_texts is blank.. main() will populate it")
+ raise Exception("all_texts is blank.. parse_rom() will populate it")
assert bank != None, "list_texts_in_banks must be given a particular bank"
@@ -6614,7 +6614,7 @@ def list_movements_in_bank(bank, all_movements):
Narrows down the list of objects to speed up Asm insertion.
"""
if len(all_movements) == 0:
- raise Exception("all_movements is blank.. main() will populate it")
+ raise Exception("all_movements is blank.. parse_rom() will populate it")
assert bank != None, "list_movements_in_bank must be given a particular bank"
assert 0 <= bank < 0x80, "bank doesn't exist in the ROM (out of bounds)"
@@ -6633,7 +6633,7 @@ def dump_asm_for_texts_in_bank(bank, start=50, end=100, rom=None):
# load and parse the ROM if necessary
if rom == None or len(rom) <= 4:
rom = load_rom()
- main()
+ parse_rom()
# get all texts
# first 100 look okay?
@@ -6653,7 +6653,7 @@ def dump_asm_for_texts_in_bank(bank, start=50, end=100, rom=None):
def dump_asm_for_movements_in_bank(bank, start=0, end=100, all_movements=None):
if rom == None or len(rom) <= 4:
rom = load_rom()
- main()
+ parse_rom()
movements = list_movements_in_bank(bank, all_movements)[start:end]
@@ -6669,7 +6669,7 @@ def dump_things_in_bank(bank, start=50, end=100):
# load and parse the ROM if necessary
if rom == None or len(rom) <= 4:
rom = load_rom()
- main()
+ parse_rom()
things = list_things_in_bank(bank)[start:end]
@@ -6960,7 +6960,7 @@ def add_map_offsets_into_map_names(map_group_offsets, map_names=None):
# add the offsets into our map structure, why not (johto maps only)
return [map_names[map_group_id+1].update({"offset": offset}) for map_group_id, offset in enumerate(map_group_offsets)]
-def main(rom=None):
+def parse_rom(rom=None):
if not rom:
# read the rom and figure out the offsets for maps
rom = direct_load_rom()