diff options
| author | Derek Hensley <hensley.derek58@gmail.com> | 2024-01-19 16:16:57 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-01-19 21:16:57 -0300 |
| commit | fe6494187ec658f10635fb7acad65a9ccc9f45ab (patch) | |
| tree | 1ba42bde4781abb25ded1e63737966c5544513c8 /tools/progress.py | |
| parent | e32e44ff40de947c768e48e8af71b9ce1962682e (diff) | |
Text Extraction + some Message Docs (#1530)
* Some Decoder WIPs
* Improvements
* POC
* Fix bss
* another newline
* Staff OK
* Cleanup + fix progress script
* script cleanup
* Some docs
* makefile
* Extract text from extract_assets.py
* More docs
* Even more docs
* Other message assets
* Small cleanups
* Clean up decoders/encoders
* Message_SetupLoadItemIcon -> Message_DecodeHeader
* Some more docs
* Remove mkdmadata
* Fade Skippable
* More cmd docs
* 1 left
* Last notes
* HS_TIMER -> HS_TIME
* More general docs
* Format
* Note the charmap conversion for buttons in message_data_fmt_nes.h
* Remove trailing whitespace
* Small fixes
* PR
Diffstat (limited to 'tools/progress.py')
| -rwxr-xr-x | tools/progress.py | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/tools/progress.py b/tools/progress.py index 0626e9b65..255cf6130 100755 --- a/tools/progress.py +++ b/tools/progress.py @@ -103,12 +103,16 @@ def GetFunctionSizes(mapFileList): def CalculateNonNamedAssets(mapFileList, assetsTracker): for mapFile in mapFileList: - if mapFile["section"] != ".data": + if mapFile["section"] != ".data" and mapFile["section"] != ".rodata": continue if not mapFile["name"].startswith("build/assets/"): continue - assetCat = mapFile["name"].split("/")[2] + if mapFile["name"].startswith("build/assets/c"): + assetCat = mapFile["name"].split("/")[3] + else: + assetCat = mapFile["name"].split("/")[2] + for symbol in mapFile["symbols"]: symbolName = symbol["name"] @@ -228,9 +232,12 @@ for line in map_file: if srcCat in asmTracker: asmTracker[srcCat]["totalSize"] += file_size - if section == ".data": + if section == ".data" or section == ".rodata": if obj_file.startswith("build/assets/"): - assetCat = obj_file.split("/")[2] + if obj_file.startswith("build/assets/c"): + assetCat = obj_file.split("/")[3] + else: + assetCat = obj_file.split("/")[2] if assetCat in assetsTracker: assetsTracker[assetCat]["currentSize"] += file_size elif assetCat in ignoredAssets: |
