From b956ff757275c2a4973fc7c6b662e5a5f47f29db Mon Sep 17 00:00:00 2001 From: megazig Date: Thu, 7 May 2009 07:15:23 -0500 Subject: added versioning --- brlan.c | 1 + brlyt.c | 5 +++-- general.h | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/brlan.c b/brlan.c index 6a1ff95..329a803 100644 --- a/brlan.c +++ b/brlan.c @@ -237,6 +237,7 @@ void parse_brlan(char* filename, char *filenameout) mxml_node_t *xmlan; xml = mxmlNewXML("1.0"); xmlan = mxmlNewElement(xml, "xmlan"); + mxmlElementSetAttrf(xmlan, "version", "%d.%d.%d%s", BENZIN_VERSION_MAJOR, BENZIN_VERSION_MINOR, BENZIN_VERSION_BUILD, BENZIN_VERSION_OTHER); mxmlElementSetAttrf(xmlan, "framesize", "%lu", (long unsigned int)short_swap_bytes(pai1_header.framesize)); mxmlElementSetAttrf(xmlan, "flags", "%02x", pai1_header.flags); diff --git a/brlyt.c b/brlyt.c index a7cedc3..43259ba 100644 --- a/brlyt.c +++ b/brlyt.c @@ -873,6 +873,7 @@ void parse_brlyt(char *filename, char *filenameout) mxml_node_t *xmlyt; xml = mxmlNewXML("1.0"); xmlyt = mxmlNewElement(xml, "xmlyt"); + mxmlElementSetAttrf(xmlyt, "version", "%d.%d.%d%s", BENZIN_VERSION_MAJOR, BENZIN_VERSION_MINOR, BENZIN_VERSION_BUILD, BENZIN_VERSION_OTHER); PrintBRLYTEntries(entries, entrycount, brlyt_file, xmlyt); mxmlSaveFile(xml, xmlFile, whitespace_cb); fclose(xmlFile); @@ -2135,8 +2136,8 @@ void WriteBRLYTEntry(mxml_node_t *tree, mxml_node_t *node, u8** tagblob, u32* bl subnode = mxmlFindElement(node, node, "text", NULL, NULL, MXML_DESCEND); if (subnode != NULL) { - unsigned char tempCoord[1024]; - get_value(subnode, tempCoord, 1024); + unsigned char tempCoord[2024]; + get_value(subnode, tempCoord, 2024); memcpy(tempy, tempCoord, short_swap_bytes(chunk2.len2)*2); u32 w; for (w=0;w