Repository navigation
Conversation
…ackage in place SharpEmu.CLI --pkg-to-zar <file.pkg> [dest.zar] [--consume-source] converts a fake PS4 or PS5 package into a ZArchive without an extracted folder. - PackageSource (was Ps5Source) carries every package read for both formats; it can record the ranges a parse reads, serve them from a snapshot over a truncated file, and refuses file reads past the consumed frontier. - IPackageContent lists exactly what Extract writes (sce_sys metadata + game files, same name checks, later write wins) and maps any file byte range to the highest package offset decoding it reads (PS5: UBlocks -> outer blocks; PS4: PFS blocks -> PFSC extents -> XTS sectors). - Files are laid out in source order; each 1 MiB offset-record group knows its source end. Direct mode writes groups in order and leaves the package untouched. - Consume mode processes groups in descending source end, in windowed batches: append to .partial, F_FULLFSYNC, journal the placements, then truncate the package. The journal holds a snapshot of the parsed ranges and a plan fingerprint, so an interrupted, cancelled or out-of-space run resumes; mismatches are refused. - ZArchiveWriter shares its block encoder and trailer with the converter; Pack output is byte-identical to before.
… optional consume mode and resume
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.
📦 Build artifacts —
|
| Platform | Download |
|---|---|
| macOS (osx-x64) | sharpemu-osx-x64-a2a6216 |
| macOS app bundle (osx-x64) | sharpemu-osx-x64-app-a2a6216 |
From build run #477. Downloads require a GitHub login and expire after 90 days.
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.
What PR does?
.pkgpackages directly into.zararchives without extracting an intermediate folder (--pkg-to-zar <file.pkg> [dest.zar] [--consume-source])..pkgafter each committed batch so peak disk usage stays near 1x..zarformat selection, consume mode, and pause/resume flows to the GUI PKG installer.Upstream PR: sharpemu/sharpemu#1193
Before submitting
Please read our contribution guidelines before opening a pull request:
➡️ CONTRIBUTING.md
By opening this pull request, you confirm that you have read and agree to follow the contribution guidelines.
Testing
uvx reuse lint: 3734/3734 files compliant.dotnet build SharpEmu.slnx -c Release: 0 errors.dotnet test SharpEmu.slnx -c Release: 0 failures across the full solution (11,869 passed inSharpEmu.Libs.TestsincludingPkgZarConverterTests, 5,066 inSharpEmu.ShaderCompiler.Metal.Tests, 2,229 inSharpEmu.Gpu.Metal.Tests, 124 inSharpEmu.Application.Tests).Checklist
By submitting this pull request, you confirm that:
CONTRIBUTING.md.N/A.N/A).