2026-01-07 16:36:02 -05:00
|
|
|
// TXET - Texture Reference Chunk (reversed "TEXT")
|
|
|
|
|
// Contains texture path references
|
|
|
|
|
// Found in .ent files
|
|
|
|
|
|
|
|
|
|
type txet_chunk [display="TXET Texture References"] byteorder BE
|
|
|
|
|
{
|
|
|
|
|
// Standard 16-byte Asura chunk header
|
|
|
|
|
chunk_id = ascii(read(4));
|
|
|
|
|
u32 chunk_size;
|
|
|
|
|
u32 version;
|
|
|
|
|
u32 flags;
|
|
|
|
|
|
2026-01-11 12:10:29 -05:00
|
|
|
chunk_id = chunk_id;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ui("chunk_id", "Chunk ID");
|
|
|
|
|
chunk_size = chunk_size;
|
|
|
|
|
|
|
|
|
|
ui("chunk_size", "Chunk Size");
|
|
|
|
|
version = version;
|
|
|
|
|
|
|
|
|
|
ui("version", "Version");
|
|
|
|
|
flags = flags;
|
|
|
|
|
|
|
|
|
|
ui("flags", "Flags");
|
2026-01-07 16:36:02 -05:00
|
|
|
|
|
|
|
|
// Number of texture references
|
|
|
|
|
u32 texture_count;
|
2026-01-11 12:10:29 -05:00
|
|
|
texture_count = texture_count;
|
|
|
|
|
|
|
|
|
|
ui("texture_count", "Texture Count");
|
2026-01-07 16:36:02 -05:00
|
|
|
|
|
|
|
|
// Texture paths are null-terminated strings concatenated together
|
|
|
|
|
// Read first texture path as example
|
|
|
|
|
if (texture_count > 0) {
|
|
|
|
|
first_texture = cstring();
|
2026-01-11 12:10:29 -05:00
|
|
|
first_texture = first_texture;
|
|
|
|
|
|
|
|
|
|
ui("first_texture", "First Texture");
|
2026-01-08 00:38:33 -05:00
|
|
|
|
|
|
|
|
// Use basename for display
|
2026-01-11 12:10:29 -05:00
|
|
|
set_name(basename(first_texture));
|
2026-01-07 16:36:02 -05:00
|
|
|
}
|
|
|
|
|
}
|