X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;ds=sidebyside;f=src%2Fswfdump.c;h=294a3f24d836b2a2eab843fee267346451dcc10d;hb=38c19185b95fb1c520088809254ab915db31ff5c;hp=051b8a20a12ff8c866b38e8a598f1ea0fa4a89b9;hpb=458c53f3b2fe6e6ae3f106084f536701a94dccbf;p=swftools.git diff --git a/src/swfdump.c b/src/swfdump.c index 051b8a2..294a3f2 100644 --- a/src/swfdump.c +++ b/src/swfdump.c @@ -51,6 +51,7 @@ static char * indent = " "; static int placements = 0; static int action = 0; static int html = 0; +static int xhtml = 0; static int xy = 0; static int showtext = 0; static int showshapes = 0; @@ -63,6 +64,7 @@ static struct options_t options[] = { {"D", "full"}, {"V", "version"}, {"e", "html"}, +{"E", "xhtml"}, {"a", "action"}, {"t", "text"}, {"s", "shapes"}, @@ -103,6 +105,11 @@ int args_callback_option(char*name,char*val) html = 1; return 0; } + else if(name[0]=='E') { + html = 1; + xhtml = 1; + return 0; + } else if(name[0]=='X') { xy |= 1; return 0; @@ -816,23 +823,34 @@ int main (int argc,char ** argv) fprintf(stderr, "Fileversion>9\n"); exit(1); } - printf("\n" - " \n" - " \n" - " \n" - " \n" - " \n" - " \n" - "\n", xsize, ysize, fileversions[swf.fileVersion], - filename, filename, xsize, ysize); + + if(xhtml) { + printf("\n" + "\n" + "\n" + "\n" + "\n" + "\n" + "\n\n", filename, xsize, ysize, filename); + } else { + printf("\n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + "\n", xsize, ysize, fileversions[swf.fileVersion], + filename, filename, xsize, ysize); + } return 0; } printf("[HEADER] File version: %d\n", swf.fileVersion);