aboutsummaryrefslogtreecommitdiff
path: root/brlyt.h
diff options
context:
space:
mode:
authormegazig <megazig@megazig-desktop.(none)>2009-03-17 07:12:52 -0500
committermegazig <megazig@megazig-desktop.(none)>2009-03-17 07:12:52 -0500
commit617b7e54b6108215dbf13579427ab3f3b40a3700 (patch)
tree6ca4f5a2c053305a6cf5f70be05163adf33365a1 /brlyt.h
parent94363187d63724d2ff2ff4c2ef7636178184f520 (diff)
updated brlyt.h and did most of pic1 and txt1
Diffstat (limited to '')
-rw-r--r--brlyt.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/brlyt.h b/brlyt.h
index e170d3d..9db9d72 100644
--- a/brlyt.h
+++ b/brlyt.h
@@ -19,7 +19,7 @@ typedef struct
u32 unk1; // 0xFEFF0008
u32 filesize; // The filesize of the brlyt.
u16 lyt_offset; // Offset to the lyt1 section.
- u16 unk2; // Unknown.
+ u16 unk2; // Number of sections.
} brlyt_header;
typedef struct
@@ -81,7 +81,8 @@ typedef struct
typedef struct
{
- int a;
+ char a;
+ char pad[3];
float width;
float height;
} brlyt_lytheader_chunk;
@@ -146,6 +147,9 @@ typedef struct
u8 unk[16];
} brlyt_10b_chunk;
+void swapBytes(unsigned char* char1, unsigned char* char2);
+int bitExtraction(unsigned int num, unsigned int start, unsigned int end);
+
void parse_brlyt(char *filename);
void make_brlyt(char* infile, char* outfile);