X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fswfcombine.c;h=29996f902b22f406279360970d903a51fa14fffb;hb=d68c5b5c60449094852f867d4af3dfbc35c8a74a;hp=2b189b922474ced538d5631f1792c567f1b3915a;hpb=7ddcc6604ef3a6004c8fefb59d2ecdedc440b2bc;p=swftools.git diff --git a/src/swfcombine.c b/src/swfcombine.c index 2b189b9..29996f9 100644 --- a/src/swfcombine.c +++ b/src/swfcombine.c @@ -12,10 +12,12 @@ #include #include "../lib/rfxswf.h" #include "../lib/args.h" +#include "../lib/log.h" #include "combine.h" #include "settings.h" #include "types.h" #include "flash.h" +#include "reloc.h" #include "../config.h" char * master_filename = 0; @@ -321,12 +323,12 @@ void makestackmaster(u8**masterdata, int*masterlength) pos += sizeof(head); *pos++ = fileversion; fixpos = (u32*)pos; - *(u32*)pos = SWAP32(0x12345678); // to be overwritten + PUT32(pos, 0x12345678); // to be overwritten pos += 4; writeRECT(&pos, &box); - *(u16*)pos = SWAP16(0x2000); // framerate + PUT16(pos, 0x2000) // framerate pos += 2; - *(u16*)pos = SWAP16(numslaves); + PUT16(pos, numslaves) // framerate pos += 2; for(t=0;t