tools(macos): say which archives a downloader has not filled in yet #635
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/635"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by AnastasisKon on 2026-11-28T17:51:09Z.
Closes #634.
What
A folder that is still downloading looks complete: a preallocating client leaves every archive at its full length with the parts it has not downloaded reading as zeros, so
GetFileSizeEx, theRPF9header and the tail piece all look valid and the data in the middle is absent.#632measured that shape on this Mac —shaders.rpfholding 3 of its 25 pieces while being 411,695,600 bytes long — and the cost of not knowing is a run that ends in the int3 atimage+0x1330a44, which reads as a host problem.tools/macos/check-game-data.sh [--samples N] <game folder>samples 4 KiB blocks spread over every.rpf, prints per archive how many samples were holes, names the ones that are missing data, and exits 1 when any is (2 for a folder with no archive or a bad argument). The blocks come from a sparse read, so the 142 GB folder here takes about a second and a half:tools/macos/tests/check-game-data.shcovers it with fixtures, and the CImacos-scriptsjob runs it beside the other script regressions. One sentence inREADME.md's "Run the game" points at the script.Testing
/bin/bash tools/macos/tests/check-game-data.sh— 10PASSlines (complete folder, a hole named, a file with only its header and tail filled in, a small archive read block by block, the sample count, no archive, a missing folder, bad arguments, several folders including one with spaces,--help).nice -n 10 sh tools/macos/verify.sh full—== gate PASSED ==(suite-hle 554, suite-shader 593, suite-gpu 493, policy, clippy-win)./Volumes/Anastasis' SSD/GTA6.Xbox.v1.0.2.1-CYBERLEEK: 142 GB allocated, 12 archives, exits 1, and the archives it clears (anim,audio,data,common,script,textures,appdata0) are the ones the torrent's piece map also reports complete.declare -A, no Python; writes nothing outside$TMPDIRin the test.Not claimed
That holes are the only reason a folder fails to boot, and nothing about the host: the check reads the game folder and never writes to it.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.