git.asbjorn.biz
/
swftools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
implemented asset resolving
[swftools.git]
/
lib
/
as3
/
main.c
diff --git
a/lib/as3/main.c
b/lib/as3/main.c
index
2835556
..
1ce83a6
100644
(file)
--- a/
lib/as3/main.c
+++ b/
lib/as3/main.c
@@
-64,7
+64,9
@@
int main(int argn, char*argv[])
}
filename=argv[argn-1];
}
filename=argv[argn-1];
- //a3_debug = 1; //if bison was called with -t
+#ifdef BISONDEBUG
+ a3_debug = 1; //if bison was called with -t
+#endif
as3_add_include_dir(getcwd(buf, 512));
as3_add_include_dir(getcwd(buf, 512));
@@
-124,7
+126,13
@@
int main(int argn, char*argv[])
swf.movieSize.xmin = swf.movieSize.ymin = 0;
swf.movieSize.xmax = 20*20;
swf.movieSize.ymax = 10*20;
swf.movieSize.xmin = swf.movieSize.ymin = 0;
swf.movieSize.xmax = 20*20;
swf.movieSize.ymax = 10*20;
- TAG*tag = swf.firstTag = swf_InsertTag(0, ST_DOABC);
+ TAG*tag = (TAG*)as3_getassets(0);
+ if(!swf.firstTag && tag) swf.firstTag = tag;
+
+ while(tag && tag->next) tag = tag->next;
+
+ tag = swf_InsertTag(tag, ST_DOABC);
+ if(!swf.firstTag && tag) swf.firstTag = tag;
swf_WriteABC(tag, code);
if(!mainclass)
swf_WriteABC(tag, code);
if(!mainclass)