- printf(" %d", data);
- } break;
- case 'b': {
- printf(" %d", *(U16*)data);
- } break;
- case 'p': {
- U8 type = *data;
- char*value = data+1;
- if(type == 0) {
- printf(" String:\"%s\"", value);
- } else if (type == 1) {
- printf(" Float:\"%f\"", *(float*)value);
- } else if (type == 2) {
- printf(" NULL");
- } else if (type == 4) {
- printf(" register:%d", value);
- } else if (type == 5) {
- printf(" %s", *value?"true":"false");
- } else if (type == 6) {
- printf(" %f", *(double*)value);
- } else if (type == 7) {
- printf(" %d", *(int*)value);
- } else if (type == 8) {
- printf(" Lookup:%d", *value);
- }
- } break;
- }
- data += OpAdvance(*cp, data);
- cp++;
- }
+ printf(" %d", data);
+ } break;
+ case 'b': {
+ printf(" %d", *(U16*)data);
+ } break;
+ case 'p': {
+ U8 type = *data;
+ char*value = data+1;
+ if(type == 0) {
+ printf(" String:\"%s\"", value);
+ } else if (type == 1) {
+ printf(" Float:\"%f\"", *(float*)value);
+ } else if (type == 2) {
+ printf(" NULL");
+ } else if (type == 4) {
+ printf(" register:%d", value);
+ } else if (type == 5) {
+ printf(" %s", *value?"true":"false");
+ } else if (type == 6) {
+ printf(" %f", *(double*)value);
+ } else if (type == 7) {
+ printf(" %d", *(int*)value);
+ } else if (type == 8) {
+ printf(" Lookup:%d", *value);
+ }
+ } break;
+ }
+ data += swf_OpAdvance(*cp, data);
+ cp++;
+ }