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
This commit is contained in:
Derek Hensley
2024-01-19 16:16:57 -08:00
committed by GitHub
parent e32e44ff40
commit fe6494187e
147 changed files with 2338 additions and 2480 deletions
+11 -4
View File
@@ -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: