-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Did some more research into Dead Space's MTLB format.
- Loading branch information
1 parent
803303a
commit 5fc097d
Showing
1 changed file
with
58 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
//------------------------------------------------ | ||
//--- 010 Editor v14.0 Binary Template | ||
// | ||
// File: | ||
// Authors: | ||
// Version: | ||
// Purpose: | ||
// Category: | ||
// File Mask: | ||
// ID Bytes: | ||
// History: | ||
//------------------------------------------------ | ||
|
||
LittleEndian(); | ||
|
||
typedef struct (uint offset) { | ||
local uint tempOffset = FTell(); | ||
FSeek(offset); | ||
|
||
string value; | ||
|
||
FSeek(tempOffset); | ||
} StringAtOffset; | ||
|
||
typedef struct { | ||
string value; | ||
} StringNt; | ||
|
||
FSeek(0x4); | ||
|
||
uint count; | ||
uint mtlbId1; | ||
uint mtlbId2; | ||
|
||
FSeek(0x40); | ||
ushort someCount1; | ||
ushort someCount2; | ||
uint someOffset; | ||
uint stringOffset; | ||
|
||
FSeek(0x50); | ||
typedef struct { | ||
uint id; | ||
uint unk1; | ||
|
||
uint typeOffset; | ||
StringAtOffset type(stringOffset + typeOffset); | ||
|
||
uint unk2[2]; | ||
|
||
uint someOffset; | ||
StringAtOffset something(stringOffset + someOffset); | ||
|
||
uint pathOffset; | ||
StringAtOffset path(stringOffset + pathOffset); | ||
} SomeStruct; | ||
SomeStruct someStructs1[someCount1] <optimize=false>; | ||
SomeStruct someStructs2[someCount2] <optimize=false>; |