diff --git a/README.md b/README.md index 86d9f8b5..ec182019 100644 --- a/README.md +++ b/README.md @@ -114,13 +114,13 @@ s32 is_drumstick_unlocked(void) { ``` -As of October 24th, 2022, this is our current score: +As of October 28, 2022, this is our current score: ``` ======================================================= ADVENTURE ONE (ASM -> C Decompilation) - ------------------- 34.02% Complete ------------------- - # Decompiled functions: 1301 - # GLOBAL_ASM remaining: 532 + ------------------- 34.09% Complete ------------------- + # Decompiled functions: 1306 + # GLOBAL_ASM remaining: 527 # NON_MATCHING functions: 12 # NON_EQUIVALENT WIP functions: 92 --------------------- Game Status --------------------- diff --git a/tools/python/score_display.py b/tools/python/score_display.py index 73670111..e1525d94 100644 --- a/tools/python/score_display.py +++ b/tools/python/score_display.py @@ -75,7 +75,7 @@ class ScoreDisplay: def makeLine(self, char, length, title=None): if title == None: - return ' ' + (char * length) + ' \n' + return ' ' + (char * length) + '\n' else: lineSideLength = (length - len(title) - 2) // 2 leftLength = lineSideLength @@ -84,11 +84,12 @@ class ScoreDisplay: rightLength += 1 if leftLength + rightLength <= 0: if leftLength + rightLength == 0: - return ' ' + title + ' \n' + return ' ' + title + '\n' else: - return ' ' + title + ' \n' + return ' ' + title + '\n' else: - return ' ' + (char * leftLength) + ' ' + title + ' ' + (char * rightLength) + ' \n' + return ' ' + (char * leftLength) + ' ' + title + \ + (' ' + char * rightLength if char != ' ' else '') + '\n' def getGameStatusDisplay(self, status, dashLen): out = '' @@ -156,4 +157,4 @@ if __name__ == "__main__": adventureSelect = int(args.adventure) scoreDisplay = ScoreDisplay() print(scoreDisplay.getDisplay(float(args.adventureOnePercentage), float(args.adventureTwoPercentage), adventureSelect)) - \ No newline at end of file + diff --git a/update-score.sh b/update-score.sh index 2ed9b538..5df193f6 100755 --- a/update-score.sh +++ b/update-score.sh @@ -1,5 +1,5 @@ #!/usr/bin/env bash -export NEW_SCORE=$(python3 ./tools/python/score.py) +export NEW_SCORE="$(python3 ./tools/python/score.py)" python3 - <<'EOF' > README.md.tmp import sys import os