aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormegazig <megazig@megazig-desktop.(none)>2009-05-15 11:08:18 -0500
committermegazig <megazig@megazig-desktop.(none)>2009-05-15 11:08:18 -0500
commite356dbbea73f17ad627b98b6ff8d7b38f08c104f (patch)
tree49be8c5bfab2adcae8808f5ca4dc0c1f8c8aaf9f
parent27e8cb7ba5f334b63aee7a1d5b52aaef58906917 (diff)
now with more descriptive and accurate names
-rw-r--r--brlan.c3
-rw-r--r--brlyt.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/brlan.c b/brlan.c
index d34a3c3..3a80de2 100644
--- a/brlan.c
+++ b/brlan.c
@@ -106,9 +106,12 @@ void BRLAN_CreateXMLTag(tag_header tagHeader, void* data, u32 offset, mxml_node_
if(short_swap_bytes(tagEntryInfo.type) < 16)
{
char type_rlmc[4] = {'R', 'L', 'M', 'C'};
+ char type_rlvc[4] = {'R', 'L', 'V', 'C'};
if(memcmp(tagHeader.magic, type_rlmc, 4) == 0)
{
entry = mxmlNewElement(tag, "entry"); mxmlElementSetAttrf(entry, "type", "%s", tag_types_rlmc_list[short_swap_bytes(tagEntryInfo.type)]);
+ } else if (memcmp(tagHeader.magic, type_rlvc, 4) == 0) {
+ entry = mxmlNewElement(tag, "entry"); mxmlElementSetAttrf(entry, "type", "%s", tag_types_rlvc_list[short_swap_bytes(tagEntryInfo.type)]);
} else {
entry = mxmlNewElement(tag, "entry"); mxmlElementSetAttrf(entry, "type", "%s", tag_types_list[short_swap_bytes(tagEntryInfo.type)]);
}
diff --git a/brlyt.c b/brlyt.c
index 5c1eb48..8646961 100644
--- a/brlyt.c
+++ b/brlyt.c
@@ -2302,7 +2302,7 @@ void WriteBRLYTEntry(mxml_node_t *tree, mxml_node_t *node, u8** tagblob, u32* bl
}
brlyt_pic_chunk chunk2;
- subnode = mxmlFindElement(node, node, "tpl", NULL, NULL, MXML_DESCEND);
+ subnode = mxmlFindElement(node, node, "material", NULL, NULL, MXML_DESCEND);
if (subnode != NULL)
{
char temp[256];