From 8d4828a3bee11e7de27cd3dfe96c5c9970a78edd Mon Sep 17 00:00:00 2001 From: Roman971 <32455037+Roman971@users.noreply.github.com> Date: Tue, 23 Nov 2021 19:31:44 +0100 Subject: Add pad_text to mkldscript and update progress.py (#1024) * Add pad_text to mkldscript and update progress.py Implements `pad_text` from MM and uses it instead of asm nops for the padding in ucode_disas. Also updates `progress.py` to account for the change (RIP 1000000 code size), and to have a green badge for 100%. * Remove 1.00mb comment in progress.py Co-authored-by: Anghelo Carvajal Co-authored-by: Anghelo Carvajal --- progress.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'progress.py') diff --git a/progress.py b/progress.py index 5de3bd023..6bddaedbf 100755 --- a/progress.py +++ b/progress.py @@ -95,7 +95,7 @@ boot -= nonMatchingASMBoot ovl -= nonMatchingASMOvl bootSize = 31408 # decompilable code only -codeSize = 1000000 # decompilable code only (1.00mb) +codeSize = 999984 # decompilable code only ovlSize = 2812000 # .text sections total = src + nonMatchingASM @@ -119,7 +119,7 @@ elif args.format == 'shield-json': "schemaVersion": 1, "label": "progress", "message": f"{srcPct:.3g}%", - "color": 'yellow', + "color": 'yellow' if srcPct < 100 else 'brightgreen', })) elif args.format == 'text': adjective = "decompiled" if not args.matching else "matched" -- cgit v1.2.3