From b4edc05c69004c6c3b0e1143fa0425c36a066951 Mon Sep 17 00:00:00 2001 From: Roman971 <32455037+Roman971@users.noreply.github.com> Date: Tue, 14 Nov 2023 21:20:46 +0100 Subject: [PATCH] Fix and simplify progress.py to account for src/audio/ files in 'code' (#1578) --- progress.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/progress.py b/progress.py index 5c56e4c6c4..82a6bebc31 100755 --- a/progress.py +++ b/progress.py @@ -86,15 +86,15 @@ for line in mapFile: objFile = lineSplit[3] if (section == ".text" and IsCFile(objFile)): - if (objFile.startswith("build/src")): + if objFile.startswith("build/src"): src += size - if (objFile.startswith("build/src/code") or (objFile.startswith("build/src/libultra/") and curSegment == "code")): - code += size - elif (objFile.startswith("build/src/boot") or (objFile.startswith("build/src/libultra/") and curSegment == "boot")): - boot += size - elif (objFile.startswith("build/src/overlays")): - ovl += size + if curSegment == "code": + code += size + elif curSegment == "boot": + boot += size + else: + ovl += size nonMatchingASM = GetNonMatchingSize("asm/non_matchings") nonMatchingASMBoot = GetNonMatchingSize("asm/non_matchings/boot")