diff options
| author | Rafael <rafaelalvesp2005@gmail.com> | 2026-11-22 02:22:53 -0300 |
|---|---|---|
| committer | Rafael <rafaelalvesp2005@gmail.com> | 2026-11-22 08:30:23 -0300 |
| commit | 004abf8aff4cc641a2161938adbe00c7191931f7 (patch) | |
| tree | a9106df9543aaf989849a0d11857b0335dcb19ba /runtime/src/pe_loader.cpp | |
| parent | bb2e18421dac527374eb837c88b5063c5d96f81f (diff) | |
world_index: join a resource split over two carved files in a carve folder
scan_rpf appends the next contiguous zlib stream while a 0DRPz resource still needs a continuation
(a large resource keeps its system page in one stream and the rest in the next). The directory
branch of scan_path parsed each carved file alone, so those resources were lost: on a 1.0.2.1
copy, `world_index.py data.rpf` finds 15,768 resources (docs/world.md) and the data.rpf carve
folder found 15,756.
In a carve folder the same rule now applies: a file is joined with the next one when
rpf9_carve.py's index.json shows that stream started at the 16-byte boundary right after it (as
scan_rpf checks in the archive), up to two continuations, within max_inflate. Without an index
the files are parsed one by one, as before. The data.rpf carve folder now gives 15,768.
Tests: a carve folder with a resource split over two files plus a second resource must list the
joined resource once with its full size (fails on main: the map row is missing), and two streams
that weren't contiguous must not be joined.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/src/pe_loader.cpp')
0 files changed, 0 insertions, 0 deletions