aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormegazig <megazig@megazig-desktop.(none)>2009-05-07 05:49:52 -0500
committermegazig <megazig@megazig-desktop.(none)>2009-05-07 05:49:52 -0500
commitc82c64eb9f9bc882549c3b4520a76e9643c6a071 (patch)
treed53848381fbffdeec855f11e0ae516d254c4430f
parentf85210fe750a911d22ae04bf33e06f8a833dff9d (diff)
xmlan back to perfect
-rw-r--r--brlan.c2
-rw-r--r--xml.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/brlan.c b/brlan.c
index 18f69e2..6a1ff95 100644
--- a/brlan.c
+++ b/brlan.c
@@ -146,7 +146,7 @@ void BRLAN_CreateXMLTag(tag_header tagHeader, void* data, u32 offset, mxml_node_
u16 p3 = short_swap_bytes(tagData2.padding);
pair = mxmlNewElement(entry, "pair");
data1 = mxmlNewElement(pair, "data1"); mxmlNewTextf(data1, 0, "%.15f", *(f32*)(&p1));
- data2 = mxmlNewElement(pair, "data2"); mxmlNewTextf(data2, 0, "%.15f", *(f32*)(&p2));
+ data2 = mxmlNewElement(pair, "data2"); mxmlNewTextf(data2, 0, "%04x", p2);
padding = mxmlNewElement(pair, "padding"); mxmlNewTextf(padding, 0, "%04x", p3);
}
}
diff --git a/xml.c b/xml.c
index 18578c5..162a02f 100644
--- a/xml.c
+++ b/xml.c
@@ -81,7 +81,7 @@ const char *whitespace_cb(mxml_node_t *node, int where)
}
if (where == 3 || where == 1){
sprintf(xmlbuff, "");
- }else if((node->prev && where == 0 || node->parent) && !(where == 2 && strncmp(name, "ua", 2) && strcmp(name, "flip") && strcmp(name, "zoom") && strcmp(name, "coords") && strcmp(name, "entries") && strcmp(name, "xmlyt") && strcmp(name, "xmlan") && strcmp(name, "entries") && strcmp(name, "triplet") && strcmp(name, "entry") && strcmp(name, "pane") && (strcmp(name, "tag") && strcmp(name, "size") && strcmp(name, "material") && strcmp(name, "colors"))) ){
+ }else if((node->prev && where == 0 || node->parent) && !(where == 2 && strncmp(name, "ua", 2) && strcmp(name, "flip") && strcmp(name, "zoom") && strcmp(name, "coords") && strcmp(name, "entries") && strcmp(name, "xmlyt") && strcmp(name, "xmlan") && strcmp(name, "entries") && strcmp(name, "triplet") && strcmp(name, "pair") && strcmp(name, "entry") && strcmp(name, "pane") && (strcmp(name, "tag") && strcmp(name, "size") && strcmp(name, "material") && strcmp(name, "colors"))) ){
sprintf(xmlbuff, "\n%*s", (depth-1)*4, "");
}else{
sprintf(xmlbuff, "");