Skip to content

Update XtfFile provenance: .xtf confirmed as the texture extension - #15

Merged
colemancda merged 1 commit into
mainfrom
docs/xtf-provenance
Jul 18, 2026
Merged

colemancda merged 1 commit into
mainfrom
docs/xtf-provenance

Conversation

@colemancda

Copy link
Copy Markdown
Owner

Summary

Doc-only follow-up to #14. The decomp just recovered the .xtf extension string at .data 0x557554 — it's what PreloadTexture (0x4f43a0) appends when opening <name>.xtf from graphics.xfs into the 256×256 texture atlas. The earlier FILEFORMATS.md note that "no .xtf string exists in the binary" (which #14's doc comment repeated) was a zeroed-data extraction artifact.

PreloadTexture's header-read sequence — two int-sized fields, one byte, then the whole pixel body into the atlas upload — corroborates the [width u32][height u32][format u8] layout, though the decompiler dropped the exact per-read byte counts, so the layout stays pinned by the on-disk files (and the checked-in TornadoTexture.xtf fixture).

Test plan

  • swift test — no behavior change, doc comment only

The decomp recovered the .xtf extension string at .data 0x557554
(appended by PreloadTexture when opening <name>.xtf from graphics.xfs
into the 256x256 texture atlas) — the earlier 'no .xtf string in the
binary' note was a zeroed-data extraction artifact. PreloadTexture's
header-read sequence corroborates the [w u32][h u32][fmt u8] layout.
@colemancda
colemancda merged commit aed2ad6 into main Jul 18, 2026
5 checks passed
@colemancda
colemancda deleted the docs/xtf-provenance branch July 18, 2026 14:26
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