Repository navigation
Normalize entry paths like the engine, add editing, nested reading and Verify - #41
Merged
Merged
Conversation
w1tcherrr
force-pushed
the
vrf-vpk-editing
branch
from
October 19, 2026 17:59
1fb3a8e to
1f46837
Compare
… entries by their normalized names and refuse names that can not be stored
…a of a package without chunk files into chunk files when it is repacked into a _dir.vpk, and write zero-length entries at the data offset
… EnumerateEntries, EntryCount, size limit constants and OpenArchiveStream
…e in place at any depth
…ksum mismatches when the package has a signature header
w1tcherrr
force-pushed
the
vrf-vpk-editing
branch
from
October 19, 2026 19:15
1f46837 to
88e8f4f
Compare
…into TryParseEntryPath, remove EntryCount and EnumerateEntries, report Verify steps with their count, find entries without allocating, reject null characters, unpaired surrogates and names ending in a dot without an extension, and hash chunk files that have no hashes when writing
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.
\and/are separators, empty and.segments are dropped,x/..is resolved, ASCII letters are lowercased and the type is split at the last dot.FindEntrynormalizes the same way. Adding refuses paths that can't hold a file: a trailing separator,..above the root, an empty name or one ending in a dot, and names over the tree's length limits (NormalizeEntryPath,NormalizeDirectoryPath, publicParseEntryPath,PathComparer).RenameDirectory,RemoveDirectoryandRequiresRepack. LikeAddFileandRenameFile, they don't check for duplicates._dir.vpkmoves its data into chunk files.FilePath,HasChunkFiles, chunk file paths,EnumerateEntries,EntryCount, size limit constants andOpenArchiveStream.OpenandOpenPackageread a package inside another package in place, at any depth.Verifychecks the signature, the checksums, the chunk hashes, and the CRCs of entries no hash covers.