Skip to content

Instantly share code, notes, and snippets.

@x1nixmzeng
Created January 28, 2016 00:01
Show Gist options
  • Save x1nixmzeng/3bfbb002ae1341460728 to your computer and use it in GitHub Desktop.
Save x1nixmzeng/3bfbb002ae1341460728 to your computer and use it in GitHub Desktop.
The Witness MO format
//--------------------------------------
//--- 010 Editor v5.0 Binary Template
//
// File: the_witness_mo.bt
// Author: WRS
// Revision: 1
// Purpose: The Witness MO files
//--------------------------------------
uint magic; // ?? 2500072158
uint unknown_0;
uint count;
uint name_table_ptr;
uint trans_table_ptr;
uint unknown_count;
uint unknown_table_ptr;
struct ptr
{
uint size;
uint offset;
};
ptr names[count];
ptr translations[count];
uint un[unknown_count];
local int i;
for(i=0; i < count;++i)
{
Printf("%s == %s\n", ReadString(names[i].offset), ReadString(translations[i].offset));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment