Skip to content

Instantly share code, notes, and snippets.

Created January 6, 2018 23:07
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
struct HEADER{
char magic[0x10];
int entriesOffset<format=hex>;
int entryPoint<format=hex>;
int entryCount;
int unk;
int stringSize<format=hex>;
int stringCount;
int padding[3];
FSeek((0x10 - (FTell() % 0x10)) + FTell());
int scriptOffset[header.entryCount]<format=hex,bgcolor=cLtBlue>;
FSeek((-(FTell() % 0x10)) + FTell());
char str[header.stringSize]<bgcolor=cGreen>;
local int i;
for(i = 0; i < header.entryCount; i++){
FSeek(scriptOffset[i] + 0x35);
byte start<bgcolor=cGreen>;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment