forked from Keelrleek/Harbor
Logbook clarity: game-code headline, CST times, one size unit, tier table from the progress map with a game column, Decomp view counts game functions, ship's log without repeated or cut titles, newest milestone in the banner; whole-program check builds a clean snapshot of main
This commit is contained in:
1 parent
783c46da56
commit
b8dab67871
4 files changed
+39
-23
No files matched your search
@@ -213,6 +213,7 @@ class ProgressMap:
|
||||
|
||||
units, unit_index, functions = [], {}, []
|
||||
game_functions = game_done = 0
|
||||
tiers = {t: {"functions": 0, "bytes": 0, "game_functions": 0, "game_bytes": 0} for t in STATUSES}
|
||||
for addr in sorted(facts):
|
||||
d = facts[addr]
|
||||
size = int(d.get("size") or 0)
|
||||
@@ -257,6 +258,11 @@ class ProgressMap:
|
||||
kind = "game" if counted else "library" if tier == "library" else "engine" if category == "engine" \
|
||||
else "unsorted" if category == "unsorted" else "library"
|
||||
u["kinds"][kind] = u["kinds"].get(kind, 0) + size
|
||||
tiers[tier]["functions"] += 1
|
||||
tiers[tier]["bytes"] += size
|
||||
if counted: # the Code bar's game functions, split by tier
|
||||
tiers[tier]["game_functions"] += 1
|
||||
tiers[tier]["game_bytes"] += size
|
||||
if counted:
|
||||
game_functions += 1
|
||||
game_done += done
|
||||
@@ -291,7 +297,7 @@ class ProgressMap:
|
||||
"source": "logbook symbol table" if symbols else "src headers and names.csv",
|
||||
"commit": commit, "main": main, "updated_at": stats.get("updated_at"),
|
||||
"percent": percent, "logbook_percent": stats.get("game_bytes_decompiled_percent"),
|
||||
"code": code, "data": self._data(facts, rev),
|
||||
"code": code, "data": self._data(facts, rev), "tiers": tiers,
|
||||
# every function in the executable (game, engine, platform, CRT), so engine work shows too
|
||||
"all_code": {"bytes": stats.get("bytes"), "functions": stats.get("functions"),
|
||||
"decompiled_bytes": ((stats.get("by_status") or {}).get("decompiled") or {}).get("bytes"),
|
||||
|
||||
Reference in new issue
Block a user