Repository navigation
Conversation
w1tcherrr
force-pushed
the
rename-file
branch
2 times, most recently
from
October 17, 2026 20:29
fd35dd8 to
64cae9e
Compare
xPaw
reviewed
Oct 18, 2026
w1tcherrr
force-pushed
the
rename-file
branch
2 times, most recently
from
October 18, 2026 16:00
e6249e5 to
739a570
Compare
This was referenced Oct 18, 2026
… files in Write only after writing
…ed, and verify Valve's map and version 1 packages
w1tcherrr
force-pushed
the
rename-file
branch
from
October 18, 2026 16:51
0e87a47 to
7c78eb0
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
Package.RenameFileto move an entry without reading its data and adding it again.Also fixes what Valve does:
.hiddenortrailing., or a null character, now throw instead of writing a broken VPK.OrdinalIgnoreCase,FindEntryneeds the lowercased path to find an added file.FindEntryalready does.Writeonly truncates an existing file after writing, so a package that can't be written leaves it untouched.And a few other fixes:
Disposethrows instead of truncating chunk files.Readthrows on a package that files were added to, instead of dropping them.IsSignedtells unsigned packages apart, sinceIsSignatureValidreturns true for them.VerifyHashesreports tree and archive section checksum mismatches instead of throwing when the whole file checksum matches, because many of Valve's map paks have garbage there. It also returns for version 1 packages, which have no checksums. It now takes a progress reporter like the other verify methods.WriteChunkSizedefaults to 100 MiB and a new chunk file only starts once the current one is larger than it, like Valve's workshop uploader.