-
- as3_add_include_dir(getcwd(buf, 512));
- as3_parse_file(filename);
+
+ //memfile_t*m = memfile_open(filename);
+ //as3_parse_bytearray(filename, m->data, m->len);
+ //memfile_close(m);
+ if(!strcmp(filename, ".")) {
+ as3_parse_directory(".");
+ } else {
+ as3_parse_file(filename);
+ }
+