Post
by mrmemmo » Wed Nov 18, 2020 5:23 am
//------------------------------------------------
//--- 010 Editor v10.0.2 Binary Template
//
// File:
// Authors:
// Version:
// Purpose:
// Category:
// File Mask:
// ID Bytes:
// History:
//------------------------------------------------
FSeek(260);
int none1;
int64 none2;
FSkip(16);
int64 none3;
FSkip(8);
int64 lengthz;
int64 lengthu;
FSkip(8);
int num;
FSkip(3764);
typedef struct{
byte Magic[8];
uint64 ID;
int unk;
int ck;
if(Magic[0] == 0 && Magic[1] == 0)
{
BreakStream( FTell() - 24);
}
else if (Magic[4] == 0 && Magic[5] == 0)
{
FSkip(2048 - 24);
}
else if (ck == 0)
{
FSkip(1496 - 24);
int none4;
FSkip(none4 * 36);
BreakStream(FTell() - 24);
}
else
{
local char texture[8] = {
0x6D, 0x32, 0xF3, 0xC3, 0xD1, 0x9C, 0x65, 0xE9
};
int blockleng;
int h_blockleng;
int unleng;
int l4;
int64 l5;
uint64 hash2;
if(Magic == texture)
{
byte array[blockleng];
BreakStream(FTell() - 8 );
//Printf("ok");
}
else
{
byte array[blockleng];
FSkip(-8);
}
}
/**/
//local int c = FTell() - 8;
//Printf("%d",Magic[1]);
} DPCSTRUCT;
DPCSTRUCT dcpstruct[num + 2] <optimize=false>;
void BreakStream (int f)
{
local int por = f % 2048;
local int go = 2048 - por + f;
FSeek(go);
}
Last edited by
mrmemmo on Wed Nov 18, 2020 6:15 am, edited 1 time in total.