summaryrefslogtreecommitdiffstats
path: root/wii_imet.h
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2009-03-18 20:52:11 +0100
committerGravatar Martin Szulecki2009-03-18 20:52:11 +0100
commit9c1ded3b0ae8e540177ee0c0baa1f9c8fcf91989 (patch)
tree38aa36327c9e3c0fef1ef7ee77c707d987aff9d0 /wii_imet.h
downloadwiiwadtools-9c1ded3b0ae8e540177ee0c0baa1f9c8fcf91989.tar.gz
wiiwadtools-9c1ded3b0ae8e540177ee0c0baa1f9c8fcf91989.tar.bz2
Initial commit of sources
Diffstat (limited to 'wii_imet.h')
-rw-r--r--wii_imet.h44
1 files changed, 44 insertions, 0 deletions
diff --git a/wii_imet.h b/wii_imet.h
new file mode 100644
index 0000000..ba2d76a
--- /dev/null
+++ b/wii_imet.h
@@ -0,0 +1,44 @@
+/**
+ * wii_imet.h
+ */
+
+#ifndef __WII_IMET_H__
+#define __WII_IMET_H__
+
+#include "types.h"
+
+#define IMET_NAME_SIZE 42
+#define IMET_NAME_COUNT 7
+
+#define IMET_OFFSET 0x80
+
+enum IMET_LANGUAGES {
+ IMET_LANG_JP = 0,
+ IMET_LANG_EN = 1,
+ IMET_LANG_DE = 2,
+ IMET_LANG_FR = 3,
+ IMET_LANG_ES = 4,
+ IMET_LANG_IT = 5,
+ IMET_LANG_NL = 6
+};
+
+typedef struct {
+ char magic[4]; /* "IMET" */
+ u32 ukn0; /* Always 00 00 06 00 */
+ u32 ukn1; /* Always 00 00 00 03 */
+ u32 ukn_size1;
+ u32 ukn_size2;
+ u32 ukn_size3;
+ u32 ukn_flags;
+ u16 name[IMET_NAME_COUNT][IMET_NAME_SIZE];
+} wii_imet;
+
+typedef struct {
+ char dirname[0x20];
+ u32 ukn_pad[3];
+ u16 unk_flag0;
+ u16 unk_flag1;
+ char host[0x10];
+} wii_build_info;
+
+#endif