From 4eacb7c0ea0dc893332ce284efed64bd9213cc65 Mon Sep 17 00:00:00 2001 From: Ryan Myers Date: Tue, 21 Sep 2021 23:08:29 -0400 Subject: [PATCH] Hacky fix for score.sh to workaround a static function --- tools/python/score.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/python/score.py b/tools/python/score.py index b5e3f386..1b9a3026 100644 --- a/tools/python/score.py +++ b/tools/python/score.py @@ -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()