Ignore AppleDouble metadata when checking game archives #3616
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!3616
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3616"
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?
@DBSN-code on GitHub · 2026-11-30 01:45 UTC · original
DBSN-code:fix/appledouble-sidecars-05→main· +26 −1 · 1 files · 1 commits · openWhat it changes
The startup check added in #1217 inspects every file with an RPF extension next to the executable and under
pack/. A directory copied from macOS can contain bothlevels.rpfand its metadata file,._levels.rpf. The metadata file has an AppleDouble header and can make the launcher stop even when the actual archive passes the RPF9 check.Recognize an AppleDouble sidecar by both its
._filename prefix and its four-byte signature. Other files with RPF extensions still go through the existing header check. The fix is confined to the Windows startup scan.How it was tested
The regression test creates synthetic files in a temporary directory, including a nested
pack/folder and an uppercase.RPFextension. The original scanner listed both sidecars as damaged. With the fix it accepts the fixture. It still reports a._file with an unrelated header and a normally named archive with an AppleDouble header.On Windows,
cargo test --locked --offline --release -p victorypassed on top of41adb551. All 81 unit tests and all 3 integration tests passed.Checked for overlap
Searched for AppleDouble, archive sidecars, macOS RPF metadata and the startup archive scan. The relevant prior change is #1217, which introduced this check.
@Trillazill on GitHub · 2026-11-30 05:39 UTC · original
Reviewed against
41adb551, and it looks right to me.cargo test --locked -p victory: 84 passed (81 + 1 + 2), including the new test.cargo clippy --locked -p victory --all-targets -- -D warningsreports nothing inapps/.._prefix and the00 05 16 07signature is the right pairing. The test's second half shows a real archive with that header, or a._file with another one, is still named.missing_archivesisn't affected by sidecars either way:._appdata0.rpfdoesn't start withappdata0, so it never shows up as a "renamed copy" of a missing archive. That fits, because the sidecar isn't one.One small thing:
damaged_archives' doc comment still says "every.rpfbeside the executable and under itspackfolder". A clause such as "(macOS's._AppleDouble sidecars aside)" would keep it matching the code.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.