upleb.uk

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

summaryrefslogtreecommitdiff
path: root/runtime/test/gameinput_test.cpp
diff options
context:
space:
mode:
authorRafael <rafaelalvesp2005@gmail.com>2026-11-22 13:04:06 -0300
committerRafael <rafaelalvesp2005@gmail.com>2026-11-22 13:04:06 -0300
commit395dee87595241860ae7c8441c861ea3b453113d (patch)
treea6997ab623203b027b6c2de7f02b9ab546cd37de /runtime/test/gameinput_test.cpp
parent4eb6155d3ac4f9d3fadb0d095c4ce13e76783615 (diff)
text_tables: a resource's first stream may be any whole number of 64 KiB blocks
_chains joined the next stream only when the previous one was exactly BLOCK (65,536 bytes). But a resource's first stream can be 128 or 192 KiB (docs/page_directory.md shows one ending at 0x20000 that the next stream continues), and its string-table descriptors then end in the following stream. On my 1.0.2.1 copy, 41 data.rpf resources start with a 131,072- or 196,608-byte stream: 20 of their tables were refused as out of range and 21 lost entries through the at + 8 > len(buf) skip. A stream now continues a previous one whose size is a nonzero multiple of BLOCK. Real data (counts only): data.rpf 14,440 -> 14,482 tables and 4,118,181 -> 4,197,518 strings, the same from the archive and from an rpf9_carve folder; shared_minigame000.rpf unchanged (78 tables, 22,371 strings). docs/text.md updated. Tests: test_resource_across_a_128k_first_stream and test_whole_block_streams_continue_and_others_end_the_chain (main: the 128/192 KiB cases fail). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/test/gameinput_test.cpp')
0 files changed, 0 insertions, 0 deletions