upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/src/pe_loader.cpp
diff options
context:
space:
mode:
authorwhattheflop <9314750+whattheflop@users.noreply.github.com>2026-11-23 11:53:00 +1000
committerwhattheflop <9314750+whattheflop@users.noreply.github.com>2026-11-23 11:53:00 +1000
commitf84683af2d88b6edf3de96f7d4c476dff927e1d5 (patch)
treec543be1143b66a8c267d48ac62addd32711d34ac /runtime/src/pe_loader.cpp
parent38ff0f7d6c41eece3d0fca56db7ead432fffc3b5 (diff)
make_game: the preflight credit never caches the decoder digest (BUILD-1228)
preflight credits the exports before ensure_submodule() fetches third_party/rpf9-explorer, and decoder_digest() is cached: a digest made from a missing checkout (no git pin yet) would be the one assets() compares afterwards, so every folder would look stale and be exported again. The digest is now computed by compute_decoder_digest(); decoder_digest() is its cached wrapper that assets() uses, and assets_bytes_on_disk() calls the uncached one, only when a folder has a decoder.sha256 (so the free-space fast path and a work folder without exports hash nothing). A digest that cannot be computed (OSError) credits nothing; an unreadable or mismatching record already credits none. Tests: the cache stays empty after the credit; an unhashable decoder credits nothing and preflight still answers; no hashing with room to spare or without exports. The mixed 179/180 tests are unchanged. Tested: python -I tests/test_make_game_*.py (preflight 85 tests) on CPython 3.12.13, Windows. AI-assisted. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/src/pe_loader.cpp')
0 files changed, 0 insertions, 0 deletions