aboutsummaryrefslogtreecommitdiff
path: root/brlan.h
diff options
context:
space:
mode:
authormegazig <megazig@megazig-desktop.(none)>2010-05-14 01:36:38 -0500
committermegazig <megazig@megazig-desktop.(none)>2010-05-14 01:36:38 -0500
commitfa394af62d1883498a9feca8c671a04251802bac (patch)
tree8cc4f7199ea5db852474ea3aa5a5a0bcad1fcbf0 /brlan.h
parentc4ae8017de2bb17bd32051b2ccf4b9a3013496e5 (diff)
changed xmlan to take brlan version as a attribute allowing newer brlan to work. fixed pai1 to have its own tag now so that pat1 and pah1 can be supported.
Diffstat (limited to 'brlan.h')
-rwxr-xr-xbrlan.h29
1 files changed, 27 insertions, 2 deletions
diff --git a/brlan.h b/brlan.h
index a9bd8ac..623878b 100755
--- a/brlan.h
+++ b/brlan.h
@@ -61,12 +61,37 @@ typedef struct
u16 endian; // Always 0xFEFF. Tells endian.
u16 version; // Always 0x0008. Version of brlan format
u32 file_size; // Size of whole file, including the header.
- u16 pai1_offset; // The offset to the pai1 header from the start of file.
- u16 pai1_count; // How many pai1 sections there are (duh, only 1... wtf?)
+ u16 pai1_offset; // The offset to the pa*1 header from the start of file.
+ u16 pai1_count; // How many pa*1 sections there are
} brlan_header;
typedef struct
{
+ fourcc magic; // "pah1" in ASCII.
+ u32 size;
+ u32 unk1_offset; // 802b5ca0 offs from pah1
+ u16 unk2; // 802b5c80
+} brlan_pah1_universal;
+
+typedef struct
+{
+ fourcc magic; // "pat1" in ASCII.
+ u32 size;
+ u16 unk1;
+ u16 unk2; // 802b5c20
+ // number of second strings
+ u32 unk3_offset; // offs from pat1
+ // offset to first string
+ u32 unk4_offset; // 802b5c40 offs from pat1
+ // offset to second string
+ // every 0x14 from here
+ u32 unk5;
+ u8 unk6; // 802b5c60
+ u8 padding;
+} brlan_pat1_universal;
+
+typedef struct
+{
fourcc magic; // "pai1" in ASCII.
u32 size; // Size of section, which is rest of the file. (header.file_size - header.offset_pai1)
u16 framesize; // Framesize