Hacky fix for score.sh to workaround a static function

This commit is contained in:
Ryan Myers
2021-09-21 23:08:29 -04:00
parent b1cab6d430
commit 4eacb7c0ea
+4 -1
View File
@@ -92,7 +92,10 @@ class ScoreFile:
matches = re.finditer(FUNCTION_REGEX, self.text, re.MULTILINE)
for matchNum, match in enumerate(matches, start=1):
groups = match.groups()
self.functions.append(ScoreFileMatch(groups[0], groups[2]))
#TODO: This function is static, and thus doesn't appear in the map.
#Hardcoding it to be ignore works for now, but it's hacky
if groups[2] != "_Putfld":
self.functions.append(ScoreFileMatch(groups[0], groups[2]))
matches = re.finditer(GLOBAL_ASM_REGEX, self.text, re.MULTILINE)
for matchNum, match in enumerate(matches, start=1):
groups = match.groups()