You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-09-08 08:13:02 -07:00
fix label generator
Recently the bank lines were changed to use lowercase characters, breaking the generator for "labels.json".
This commit is contained in:
@@ -7762,9 +7762,9 @@ def scan_for_predefined_labels(debug=False):
|
|||||||
abbreviation_next = "1"
|
abbreviation_next = "1"
|
||||||
|
|
||||||
# calculate the start/stop line numbers for this bank
|
# calculate the start/stop line numbers for this bank
|
||||||
start_line_id = index(asm, lambda line: "\"bank" + abbreviation + "\"" in line)
|
start_line_id = index(asm, lambda line: "\"bank" + abbreviation.lower() + "\"" in line.lower())
|
||||||
if bank_id != 0x7F:
|
if bank_id != 0x7F:
|
||||||
end_line_id = index(asm, lambda line: "\"bank" + abbreviation_next + "\"" in line)
|
end_line_id = index(asm, lambda line: "\"bank" + abbreviation_next.lower() + "\"" in line.lower())
|
||||||
end_line_id += 1
|
end_line_id += 1
|
||||||
else:
|
else:
|
||||||
end_line_id = len(asm) - 1
|
end_line_id = len(asm) - 1
|
||||||
|
Reference in New Issue
Block a user