Skip to content

Commit

Permalink
Create Res.bt
Browse files Browse the repository at this point in the history
  • Loading branch information
MeltyPlayer committed Feb 11, 2025
1 parent 9fc2853 commit 57f2d86
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions FinModelUtility/Formats/Level5/Level5/src/010/Res.bt
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
//------------------------------------------------
//--- 010 Editor v13.0.1 Binary Template
//
// File:
// Authors:
// Version:
// Purpose:
// Category:
// File Mask:
// ID Bytes:
// History:
//------------------------------------------------

LittleEndian();

local int C_PRM = 0xFF0000;
local int C_HASH = 0xFFFF00;
local int C_NODE = 0x0000FF;

char magic[6];

ushort unk0;

ushort stringTableOffset;
ushort unk1;

typedef struct {
ushort tableOffset;
ushort tableCount;

typedef struct {
ushort materialOffset;
ushort materialCount;
ushort unk;
ushort size;
} Material;

local uint tmp = FTell();
FSeek(tableOffset << 2);

Material materials[tableCount];

FSeek(tmp);
} MaterialTable <bgcolor=C_PRM>;

MaterialTable materialTable;

0 comments on commit 57f2d86

Please sign in to comment.