Skip to content

Preserve original Wii hash areas when writing WIA and RVZ - #42

Draft
communism420 wants to merge 3 commits into
encounter:mainfrom
communism420:codex/preserve-wia-rvz-hash-areas
Draft

communism420 wants to merge 3 commits into
encounter:mainfrom
communism420:codex/preserve-wia-rvz-hash-areas

Conversation

@communism420

@communism420 communism420 commented Oct 13, 2026 •

Copy link
Copy Markdown

The WIA/RVZ writer currently emits empty hash-exception lists. Reconstructing those images can change original Wii hashes and padding. Generate exceptions against the reconstructed partition-aligned hash group, preserve padding, and size WIA compression buffers for the encoded exceptions.

Depends on #38 and includes its commits; this is a draft until that prerequisite is resolved. Nine synthetic round trips cover encrypted/plaintext input, small and large chunks, partial groups, neighboring partitions, compression, and incompressible data. No private game dumps are included.

On Windows x64 / Rust 1.99, cargo test --locked -p nod --lib --target x86_64-pc-windows-msvc passed 19 tests and --test wia_lossless passed 9. With --no-default-features, the corresponding counts were 19 and 4.

Additional validation of #38–#43 combined on wiidev/nod@9a7a6b2 passed 24 library, 9 lossless and 2 progress tests in release; without default features the counts were 20, 4 and 2. All five doctests passed. In the combined patched TinyWiiBackupManager integration, all 24 USB games were exported to RVZ and their decoded SHA1 values matched the source images. These end-to-end results apply to the combined patches, not this branch alone.

Developed with AI assistance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant