Skip to content

Shader split: read both MT Framework ARC v7 entry sizes - #653

Open
aldotms89 wants to merge 1 commit into
igawa6:mainfrom
aldotms89:mtarc-entry-size
Open

aldotms89 wants to merge 1 commit into
igawa6:mainfrom
aldotms89:mtarc-entry-size

Conversation

@aldotms89

Copy link
Copy Markdown

What and why

Resident Evil 6 uses 0x50-byte ARC v7 entries. With a fixed 0x90-byte stride the shader splitter reads the lengths and offsets from the wrong positions. Validate both entry layouts, preserving priority for the original layout, and stream SPK records to the existing deduplicating collector. See the ARC v7 reader reference.

This change can merge independently and is required to prepare Resident Evil 6. It changes shader extraction. The shader translation chain version stays the same.

Checked

  • Python tests — all 167 shader-split tests passed. The targeted split and docs modules also passed (26 tests).
  • Read the four shader archives in a Resident Evil 6 2.0.0 package. They yielded 82,510 shader records and 80,274 unique keys, an exact match to the proposed RE6 profile’s key set.
  • Not re-run on the phone after porting onto current main (no new system-driver or Turnip runs).

Docs

  • Added the reader reference, regenerated the symptom index and passed the marker check.
  • Source only. The branch starts from current Peanuts Native main.

Resident Evil 6 archives use 64-byte path fields. Validate both table layouts and yield SPK records directly to the collector to avoid holding a second copy of the package.
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