X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fswfcombine.c;h=229dd1d1ead27bbe340a9d5e2eed6b0c561341ac;hb=5058b5848c87ff41a3d83d163cef448989bd7726;hp=2b189b922474ced538d5631f1792c567f1b3915a;hpb=7ddcc6604ef3a6004c8fefb59d2ecdedc440b2bc;p=swftools.git diff --git a/src/swfcombine.c b/src/swfcombine.c index 2b189b9..229dd1d 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