Skip to content

Instantly share code, notes, and snippets.

@matteyeux
Created February 21, 2025 06:26
Show Gist options
  • Save matteyeux/d11e5bb230b0481f41fa6113542e56e1 to your computer and use it in GitHub Desktop.
Save matteyeux/d11e5bb230b0481f41fa6113542e56e1 to your computer and use it in GitHub Desktop.
struct FileEntry {
char tag[4];
u32 offset;
u32 length;
u32 pad;
};
struct FTAB_Header {
u32 unk[8];
char magic[8];
u32 num_entries;
u32 zero;
FileEntry entries[num_entries];
};
FTAB_Header header @ 0;
for (u32 i = 0, i < header.num_entries, i = i + 1) {
FileEntry entry @ (sizeof(header) + i * sizeof(FileEntry));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment