X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;f=lib%2Fas3%2Fpool.c;h=e9376f3e4ecd3bce85c9c2621f18d1631db18fd7;hb=73d8cc98d715704a59818e1c2c556b65911e7d85;hp=ffea0e6b2c053361be114f7923d899cc268730ca;hpb=8d78dadd6a8cd35d085109414a9aa4a1fa9e9d8e;p=swftools.git diff --git a/lib/as3/pool.c b/lib/as3/pool.c index ffea0e6..e9376f3 100644 --- a/lib/as3/pool.c +++ b/lib/as3/pool.c @@ -211,6 +211,7 @@ namespace_t* namespace_fromstring(const char*name) if(!strcmp(a, "")) access=0x16; else if(!strcmp(a, "undefined")) access=0x08; // public?? else if(!strcmp(a, "package")) access=0x16; + else if(!strcmp(a, "public")) access=0x16; else if(!strcmp(a, "packageinternal")) access=0x17; else if(!strcmp(a, "protected")) access=0x18; else if(!strcmp(a, "explicit")) access=0x19; @@ -472,7 +473,7 @@ multiname_t* multiname_clone(multiname_t*other) char* access2str(int type) { if(type==0x08) return "access08"; - else if(type==0x16) return "package"; + else if(type==0x16) return "public"; else if(type==0x17) return "packageinternal"; else if(type==0x18) return "protected"; else if(type==0x19) return "explicit"; @@ -994,7 +995,7 @@ void pool_read(pool_t*pool, TAG*tag) DEBUG printf("%d ints\n", num_ints); int t; for(t=1;tx_ints, &v, 0); } @@ -1002,7 +1003,7 @@ void pool_read(pool_t*pool, TAG*tag) int num_uints = swf_GetU30(tag); DEBUG printf("%d uints\n", num_uints); for(t=1;tx_uints, &v, 0); } @@ -1136,11 +1137,11 @@ void pool_write(pool_t*pool, TAG*tag) swf_SetU30(tag, pool->x_ints->num>1?pool->x_ints->num:0); for(t=1;tx_ints->num;t++) { S32 val = *(int*)array_getkey(pool->x_ints, t); - swf_SetS30(tag, val); + swf_SetABCS32(tag, val); } swf_SetU30(tag, pool->x_uints->num>1?pool->x_uints->num:0); for(t=1;tx_uints->num;t++) { - swf_SetU30(tag, *(unsigned int*)array_getkey(pool->x_uints, t)); + swf_SetABCU32(tag, *(unsigned int*)array_getkey(pool->x_uints, t)); } swf_SetU30(tag, pool->x_floats->num>1?pool->x_floats->num:0); for(t=1;tx_floats->num;t++) {