Relicense as MIT.

This commit is contained in:
Marisa the Magician 2020-10-25 10:56:47 +01:00
commit 37232c84e5
22 changed files with 196 additions and 787 deletions

View file

@ -517,6 +517,7 @@ int main( int argc, char **argv )
if ( head->pkgver < 55 ) fpos += 16;
if ( head->pkgver <= 44 ) fpos -= 6; // ???
if ( head->pkgver == 45 ) fpos -= 2; // ???
if ( head->pkgver == 41 ) fpos += 2; // ???
if ( head->pkgver <= 35 ) fpos += 8; // ???
// process properties
int32_t prop = readindex();
@ -536,6 +537,14 @@ retry:
int array = info&0x80;
int type = info&0xf;
int psiz = (info>>4)&0x7;
int32_t tl = 0;
char *sname;
if ( type == 10 )
{
int32_t sn;
sn = readindex();
sname = (char*)(pkgfile+getname(sn,&tl));
}
switch ( psiz )
{
case 0:
@ -564,6 +573,7 @@ retry:
break;
}
//printf(" prop %.*s (%u, %u, %u, %u)\n",l,pname,array,type,(info>>4)&7,psiz);
//if ( tl ) printf(" struct: %.*s\n",tl,sname);
if ( array && (type != 3) )
{
int idx = readindex();
@ -573,17 +583,7 @@ retry:
pal = readindex();
else if ( !strncasecmp(pname,"bMasked",l) )
masked = array;
else
{
if ( type == 10 )
{
int32_t tl, sn;
sn = readindex();
char *sname = (char*)(pkgfile+getname(sn,&tl));
//printf(" struct: %.*s\n",tl,sname);
}
fpos += psiz;
}
else fpos += psiz;
prop = readindex();
pname = (char*)(pkgfile+getname(prop,&l));
goto retry;