mirror of
https://github.com/izzy2lost/Diddy-Kong-Racing.git
synced 2026-06-19 01:16:26 -07:00
match: func_800B92F4 / func_800B97A8 (#501)
* match: func_800B92F4 * fix: score.py script crashing on invalid / empty address * match: func_800B97A8
This commit is contained in:
@@ -83,8 +83,13 @@ class DkrMapFile:
|
||||
lineSet = 18
|
||||
if (lineSet != 0):
|
||||
if '=' in line:
|
||||
line = line[0:line.find('=')-1]
|
||||
address = int(line[lineSet:lineSet+8], 16)
|
||||
line = line[0:line.find('=') - 1]
|
||||
try:
|
||||
address = int(line[lineSet:lineSet+8], 16)
|
||||
except ValueError:
|
||||
# no or incorrect address, skip
|
||||
continue
|
||||
|
||||
if address >= CODE_START and address < CODE_END:
|
||||
symbol = line[line.rfind(' ')+1:]
|
||||
if (not symbol.startswith(".L") and not symbol.startswith("L800")
|
||||
|
||||
Reference in New Issue
Block a user