From 8451f05e8ca2b0dd38f36efa34d9e143a3981986 Mon Sep 17 00:00:00 2001 From: modeco80 Date: Tue, 21 Jan 2025 22:12:34 -0500 Subject: [PATCH] datadoc: Add format typedef It's a u8, so make that clear --- datadoc/tex.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/datadoc/tex.md b/datadoc/tex.md index 72858c5..5d9bda7 100644 --- a/datadoc/tex.md +++ b/datadoc/tex.md @@ -14,10 +14,12 @@ On PS2, the Europa engine uses a homebrew texture format, known as "YATF" or, ~~ The .tex file header is one of the few filetypes in Europa which uses a proper FourCC magic. However this becomes rapidly annoying as you'll see later. ```cpp +using Format = u8; // See version-specific information + struct yatfHeader { uint32_t magic; uint16_t version; - Format format; // Version-specific + Format format; uint8_t unknown; // ? uint32_t unknownZeroed; // Zeroed on all files