split unknown_005740 into unknown_008C40 & unknown_00B8E0

This commit is contained in:
David Benepe
2021-06-05 17:05:54 -05:00
parent 17de52bff7
commit 4874527823
4 changed files with 100 additions and 75 deletions
+1 -2
View File
@@ -39,11 +39,10 @@ def getLineType(line):
return 0
def getAsmFileReferenceForLabel(filename, label):
searchLabel = ASM_DIRECTORY + filename
possibleFiles = []
search = os.popen('fgrep -r "' + label + '"').read().split('\n')
for line in search:
if searchLabel in line:
if ASM_DIRECTORY in line:
asmfilePath = line.split(':')[0]
if asmfilePath not in possibleFiles:
possibleFiles.append(asmfilePath)