Skip to content

Shader split: accept padded stored ZIP members - #660

Open
aldotms89 wants to merge 1 commit into
igawa6:mainfrom
aldotms89:zip-padded-members
Open

aldotms89 wants to merge 1 commit into
igawa6:mainfrom
aldotms89:zip-padded-members

Conversation

@aldotms89

Copy link
Copy Markdown

What and why

Some ZIP archives append alignment bytes to a stored member. When its sizes disagree, read the raw bytes and use the declared-size prefix if its CRC matches. Otherwise use the existing Viper LZ4 decoder. Based on main at 4ae5c26.

Checked

  • PC Python: both ZIP tests passed, covering padded prefix CRC acceptance and rejection plus the Viper LZ4 fallback.
  • PC documentation: all 11 checks passed.
  • Phone runs on the test app: none on this branch.
  • GPU drivers: no new system-driver or Turnip run.

Docs

  • Added the padded ZIP reference entry and regenerated the symptom index.
  • No game files, keys, or extracted game bytes in the change or attachments.
  • Source and metadata only. No binaries, vendored files, or chain version files in the branch.

Some archives append alignment bytes to stored entries. Validate the declared-size prefix against the directory CRC before falling back to Viper LZ4. A synthetic ZIP checks both acceptance and rejection.
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