X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fswfdump.c;h=8fb84b6a35b54ae7169815714cec017729f46dd7;hb=93c1adc4ecb8a095a5bde78cee7c640b4acf4964;hp=9a2dc70942eb76d84cbc630498d22acd10ed02f4;hpb=8386a755728a87ff16fa1d62e87b0dd5660b6aa2;p=swftools.git diff --git a/src/swfdump.c b/src/swfdump.c index 9a2dc70..8fb84b6 100644 --- a/src/swfdump.c +++ b/src/swfdump.c @@ -319,7 +319,7 @@ SWFFONT**fonts; void textcallback(void*self, int*glyphs, int*ypos, int nr, int fontid, int fontsize, int startx, int starty, RGBA*color) { int font=-1,t; - printf(" <%2d glyphs in font %2d, color #%02x%02x%02x%02x> ",nr, fontid, color->r, color->g, color->b, color->a); + printf(" <%2d glyphs in font %2d size %d, color #%02x%02x%02x%02x> ",nr, fontid, fontsize, color->r, color->g, color->b, color->a); for(t=0;tid == fontid) { @@ -964,11 +964,11 @@ int main (int argc,char ** argv) #endif close(f); - - if(action && swf.fileVersion>=9) { - fprintf(stderr, "Actionscript parsing (-a) not yet supported for SWF versions>=9\n"); - action = 0; - } + + //if(action && swf.fileVersion>=9) { + // fprintf(stderr, "Actionscript parsing (-a) not yet supported for SWF versions>=9\n"); + // action = 0; + //} xsize = (swf.movieSize.xmax-swf.movieSize.xmin)/20; ysize = (swf.movieSize.ymax-swf.movieSize.ymin)/20; @@ -1310,6 +1310,9 @@ int main (int argc,char ** argv) actions = swf_ActionGet(tag); swf_DumpActions(actions, myprefix); } + else if(tag->id == ST_DOABC && action) { + swf_DissassembleABC(tag); + } else if(tag->id == ST_DOINITACTION && action) { ActionTAG*actions; swf_GetU16(tag); // id