diff options
| author | Rafael <rafaelalvesp2005@gmail.com> | 2026-11-22 13:20:50 -0300 |
|---|---|---|
| committer | Rafael <rafaelalvesp2005@gmail.com> | 2026-11-22 13:20:50 -0300 |
| commit | 74de9c73dc63a2dd8d8bb9bd23a3ba9e3c9c7cc5 (patch) | |
| tree | 372f059929e3315598ede1a130859f5ed64e5e97 /runtime/test/gameinput_test.cpp | |
| parent | 4eb6155d3ac4f9d3fadb0d095c4ce13e76783615 (diff) | |
restofworld_index: folder mode takes stored sizes and span from the carve's index.json
scan_dir passed each carved file's inflated length as its stored size, so in folder mode
compressed_bytes equalled inflated_bytes and readable_fraction was always 1.0, while the same numbers
in archive mode are the compressed sizes and stored / span. With rpf9_carve.py's index.json in the
folder, each file's stored size and the carve's span, zero padding and unread bytes now come from it;
without one, the length on disk is still used.
Real data (counts only), script.rpf: archive mode and its carve folder now give the same summary,
1,057 files, compressed 2,581,192, inflated 6,180,256, zero padding 1,335,290, unread 441,870,
readable 0.59224; main's folder mode gave compressed 6,180,256 and readable 1.0.
Tests: FolderModeStoredBytesTest (main: the index case reports 1,000 stored bytes instead of 300).
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