From 34c465815c5cf13c44a26a3660e9f733cb895413 Mon Sep 17 00:00:00 2001 From: David Date: Thu, 2 Nov 2023 21:33:35 -0500 Subject: [PATCH] Added non matching score to score script. --- src/audio.c | 2 +- tools/python/score.py | 21 +++++++++++++++++---- tools/python/score_display.py | 4 ++-- 3 files changed, 20 insertions(+), 7 deletions(-) diff --git a/src/audio.c b/src/audio.c index 88172515..e1dc0e56 100644 --- a/src/audio.c +++ b/src/audio.c @@ -469,7 +469,7 @@ UNUSED u8 music_channel_volume(u8 channel) { /** * Set this channel to fade in over time. */ -void music_channel_fade_set(u8 channel, u8 fade) { +void music_channel_fade_set(u8 channel, ALPan fade) { if (channel < AUDIO_CHANNELS) { alCSPSetFadeIn(gMusicPlayer, channel, fade); } diff --git a/tools/python/score.py b/tools/python/score.py index 22e20749..664ece56 100644 --- a/tools/python/score.py +++ b/tools/python/score.py @@ -52,7 +52,7 @@ LIB_SRC_DIRECTORY = './lib/src' FUNCTION_REGEX = r'^(? 0: if showTopFiles > len(scoreFiles): diff --git a/tools/python/score_display.py b/tools/python/score_display.py index e1525d94..86f7e4a9 100644 --- a/tools/python/score_display.py +++ b/tools/python/score_display.py @@ -107,7 +107,7 @@ class ScoreDisplay: out += self.makeLine(' ', dashLen, status['Msg']) return [out, dashLen] - def getDisplay(self, advOnePer, advTwoPer, showFlags=3, totalDecompFunctions=0, totalGlobalAsm=0, totalNonMatching=0, totalNonEquivalent=0, totalDocumented=0, totalUndocumented=0): + def getDisplay(self, advOnePer, advOneNonMatchPer, advTwoPer, showFlags=3, totalDecompFunctions=0, totalGlobalAsm=0, totalNonMatching=0, totalNonEquivalent=0, totalDocumented=0, totalUndocumented=0): advOneStatus = self.getStatus(advOnePer) advTwoStatus = self.getStatus(advTwoPer) if showFlags == 3: @@ -127,7 +127,7 @@ class ScoreDisplay: if advOnePer >= 100.0: out += self.makeLine('-', dashLen, '{:5.1f}% Complete'.format(advOnePer)) else: - out += self.makeLine('-', dashLen, '{:5.2f}% Complete'.format(advOnePer)) + out += self.makeLine('-', dashLen, '{:5.2f}% ({:5.2f}%) Complete'.format(advOnePer, advOneNonMatchPer)) out += self.makeLine(' ', dashLen, '# Decompiled functions: ' + str(totalDecompFunctions)) out += self.makeLine(' ', dashLen, '# GLOBAL_ASM remaining: ' + str(totalGlobalAsm)) out += self.makeLine(' ', dashLen, '# NON_MATCHING functions: ' + str(totalNonMatching))