Fix score script (#619)

This commit is contained in:
Ryan Myers
2025-06-11 10:44:40 -04:00
committed by GitHub
parent 5c79e7b091
commit 9195ceed28
3 changed files with 8 additions and 5 deletions
+2 -1
View File
@@ -152,7 +152,8 @@ class ScoreFile:
self.nonEquivalents = re.findall(NON_EQUVIALENT_REGEX, self.text)
self.nonEquivalentsSizes = 0
for nonEquivalent in self.nonEquivalents:
self.nonEquivalentsSizes += MAP_FILE.functionSizes[nonEquivalent]
if (nonEquivalent not in NOT_FUNCTION_NAMES):
self.nonEquivalentsSizes += MAP_FILE.functionSizes[nonEquivalent]
self.numNonEquivalents = len(self.nonEquivalents)
self.text = re.sub(WIP_REGEX, r"GLOBAL_ASM(\1)", self.text)