summaryrefslogtreecommitdiff
path: root/progress.py
diff options
context:
space:
mode:
authorRoman971 <32455037+Roman971@users.noreply.github.com>2021-11-23 19:31:44 +0100
committerGitHub <noreply@github.com>2021-11-24 03:31:44 +0900
commit8d4828a3bee11e7de27cd3dfe96c5c9970a78edd (patch)
tree778d2de7b85f4cbbde0156c0bf61e9d83cc2df99 /progress.py
parenta497f33bda7686e3aa948898000ecd3a861c5704 (diff)
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 <angheloalf95@gmail.com> Co-authored-by: Anghelo Carvajal <angheloalf95@gmail.com>
Diffstat (limited to 'progress.py')
-rwxr-xr-xprogress.py4
1 files changed, 2 insertions, 2 deletions
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"