git.asbjorn.biz
/
swftools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Generated from configure.in
[swftools.git]
/
src
/
swfdump.c
diff --git
a/src/swfdump.c
b/src/swfdump.c
index
0d4babc
..
6256e49
100644
(file)
--- a/
src/swfdump.c
+++ b/
src/swfdump.c
@@
-676,9
+676,9
@@
void hexdumpTag(TAG*tag, char* prefix)
ascii[t&15] = printable(tag->data[t]);
if((t && ((t&15)==15)) || (t==tag->len-1))
{
ascii[t&15] = printable(tag->data[t]);
if((t && ((t&15)==15)) || (t==tag->len-1))
{
- int s,p=((t-1)&15)+1;
+ int s,p=((t)&15)+1;
ascii[p] = 0;
ascii[p] = 0;
- for(s=p;s<16;s++) {
+ for(s=p-1;s<16;s++) {
printf(" ");
}
if(t==tag->len-1)
printf(" ");
}
if(t==tag->len-1)
@@
-1073,6
+1073,12
@@
int main (int argc,char ** argv)
actions = swf_ActionGet(tag);
swf_DumpActions(actions, myprefix);
}
actions = swf_ActionGet(tag);
swf_DumpActions(actions, myprefix);
}
+ else if(tag->id == ST_DOINITACTION && action) {
+ ActionTAG*actions;
+ swf_GetU16(tag); // id
+ actions = swf_ActionGet(tag);
+ swf_DumpActions(actions, myprefix);
+ }
else if(tag->id == ST_DEFINEBUTTON && action) {
dumpButtonActions(tag, myprefix);
}
else if(tag->id == ST_DEFINEBUTTON && action) {
dumpButtonActions(tag, myprefix);
}