summaryrefslogtreecommitdiff
path: root/progress.py
diff options
context:
space:
mode:
authorMegaMech <MegaMech@users.noreply.github.com>2021-12-18 03:30:41 -0700
committerGitHub <noreply@github.com>2021-12-18 03:30:41 -0700
commit9b0646fde05e370e22337c6485bb678d6bf326fb (patch)
treeb2f528bbfe4abb21d08df6dae5bdf9819cf87126 /progress.py
parent45f8d5b5cacf9fec0b96f97c722bc8100317f83e (diff)
Update progress.py (#103)
* Update progress.py * Update Jenkinsfile * Update progress.py * Update README.md
Diffstat (limited to 'progress.py')
-rw-r--r--progress.py14
1 files changed, 12 insertions, 2 deletions
diff --git a/progress.py b/progress.py
index a7b921cf3..11df12143 100644
--- a/progress.py
+++ b/progress.py
@@ -7,7 +7,7 @@ import os
import re
parser = argparse.ArgumentParser(description="Computes current progress throughout the whole project.")
-parser.add_argument("format", nargs="?", default="text", choices=["text", "shield-json", "badge1"])
+parser.add_argument("format", nargs="?", default="text", choices=["text", "shield-json", "totalBadge", "gameBadge", "audioBadge", "bytesToDecompile", "m2cFuncs", "nonmatchingFuncs"])
parser.add_argument("-m", "--matching", dest='matching', action='store_true',
help="Output matching progress instead of decompilation progress")
args = parser.parse_args()
@@ -279,8 +279,18 @@ if args.format == 'shield-json':
"message": f"{srcPct:.3g}%",
"color": 'yellow',
}))
-elif args.format == 'badge1':
+elif args.format == 'totalBadge':
+ print(str(round(((mk64Code_size - text_size) * mk64Code_size) * 100, 2))+"%")
+elif args.format == 'gameBadge':
print(str(round(srcPct, 2))+"%")
+elif args.format == 'audioBadge':
+ print(str(round(audioPct, 2))+"%")
+elif args.format == 'bytesToDecompile':
+ print(str(text_size)+" of "+str(mk64Code_size)+"\n")
+elif args.format == 'm2cFuncs':
+ print(str(TotalMipsToCFunctions))
+elif args.format == 'nonmatchingFuncs':
+ print(str(TotalNonMatchingFunctions))
elif args.format == 'text':
adjective = "decompiled" if not args.matching else "matched"