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:
authoropencode <opencode@local>2026-11-22 15:14:43 +0000
committerKam471 <115741199+Kam471@users.noreply.github.com>2026-11-22 15:29:23 +0000
commit8c0c1b79ec18afa472cfad1827fa465d1e3a1673 (patch)
tree579a646da832855329e440bb177cbd626a7a74a3 /runtime/src/pe_loader.cpp
parent4eb6155d3ac4f9d3fadb0d095c4ce13e76783615 (diff)
tools: resolve mission-state pools by block index
The 32-byte state record is the container's own map-pair shape: the u64 at +16 is a PSIN pointer whose low 20 bits are a 1-based block number (read as `kind`) and whose remaining bits are the byte offset, split between `band` and `poolOffset`. Resolve that block-indexed address as a third candidate, using the slot stride the chunk's slices prove (a chunk's records tile one array, so gap / count is the stride). A 112-byte pair slot then steps by 112 instead of by 64 and all its placements resolve. Adds three synthetic tests: stride inference, band as the offset's high bits, and an end-to-end PSIN container with a 112-byte slot array. The 12 existing tests still pass. On the five COM_KBOS_NEIGHB streams unresolved records fall from 38 to 31 (03fe4000.bin 28 -> 25, 03fe8000.bin 4 -> 0); the 31 that remain are pair slots whose value struct is not the 64-byte position/rotation layout.
Diffstat (limited to 'runtime/src/pe_loader.cpp')
0 files changed, 0 insertions, 0 deletions