upleb.uk

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

summaryrefslogtreecommitdiff
path: root/runtime/src/main.cpp
diff options
context:
space:
mode:
authorJan Trencansky <jan.trencansky@protonmail.com>2026-11-23 11:52:58 -0500
committerJan Trencansky <jan.trencansky@protonmail.com>2026-11-24 07:49:18 -0500
commit9898deecbb8c6b3202e59c5ae95eb720a350ac22 (patch)
treea0e459073df9ad3a7b086544ac4da174954c7ada /runtime/src/main.cpp
parent51f31609236a952badeb9c9aba9efc2a6e4dc2ff (diff)
instance_lists, world_interior_names: read the block number from 20 bits, as world_index and psin_data do
A 0DRP/PSIN pool pointer keeps the 1-based block number in its low 20 bits and the byte offset above (docs/psin.md, docs/ped_catalogues.md, psin_data). instance_lists and world_interior_names masked 12 bits, as docs/world.md said, so a block number of 4,096 or more would have been read as a wrong block. world_index.split_pointer is now the one decoder for the three tools, and docs/world.md gives the 20-bit form. Over the 0x7a resources of levels.rpf, story000.rpf, shared_minigame000.rpf and packs.rpf (232,846), the most blocks one has is 1,760, and every non-null 0x52 array and 0x42 string pointer has bits 12-19 at zero, so the counts the tools report don't change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/src/main.cpp')
0 files changed, 0 insertions, 0 deletions