Created
January 30, 2016 17:05
-
-
Save x1nixmzeng/0cac79a37f4dd607b542 to your computer and use it in GitHub Desktop.
GMD text format
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
//-------------------------------------- | |
//--- 010 Editor v5.0 Binary Template | |
// | |
// File: pause_history_eng.2A2BB29A | |
// Author: wrs | |
// Revision: 1 | |
// Purpose: GMD texts | |
//-------------------------------------- | |
char magic[4]; // "GMD\0" | |
uint un; | |
uint unknown_1; | |
uint unknown_0a; | |
uint unknown_0b; | |
uint count_textkeys; | |
uint count_textval; | |
uint sizeof_textkeys; | |
uint sizeof_textval; | |
uint len; | |
char name[len + (4 - (len % 4))]; // pad to 4 | |
struct data | |
{ | |
uint pid; | |
int pstr; // may be -1 | |
}; | |
data lookup_tb[count_textkeys]; | |
struct text { | |
string val; | |
}; | |
struct | |
{ | |
text keys[count_textkeys] <optimize=false>; | |
} TextKeys; | |
struct | |
{ | |
text values[count_textval] <optimize=false>; | |
} TextVal; | |
local int i; | |
for( i = 0; i < count_textkeys; ++i ) | |
{ | |
Printf("%s == %s\n", TextKeys.keys[i].val, TextVal.values[lookup_tb[i].pid].val); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment