summaryrefslogtreecommitdiff
path: root/tools/o2narc/Narc.h
diff options
context:
space:
mode:
authorPikalaxALT <pikalaxalt@gmail.com>2020-06-18 13:53:34 -0400
committerPikalaxALT <pikalaxalt@gmail.com>2020-06-18 13:53:34 -0400
commit28b7cf28c73879c406324f14df424fd7f46e9c14 (patch)
treee4616cf2702e62b3dd35f9d65ff4b012d0f02b22 /tools/o2narc/Narc.h
parent42efbaf26211b24edc4e31a7ae51948458caef65 (diff)
Implement o2narc; decompile base stats and movelearns to json
Diffstat (limited to 'tools/o2narc/Narc.h')
-rw-r--r--tools/o2narc/Narc.h47
1 files changed, 47 insertions, 0 deletions
diff --git a/tools/o2narc/Narc.h b/tools/o2narc/Narc.h
new file mode 100644
index 00000000..f1b93b56
--- /dev/null
+++ b/tools/o2narc/Narc.h
@@ -0,0 +1,47 @@
+#ifndef GUARD_NARC_H
+#define GUARD_NARC_H
+
+struct NarcHeader
+{
+ uint32_t Id;
+ uint16_t ByteOrderMark;
+ uint16_t Version;
+ uint32_t FileSize;
+ uint16_t ChunkSize;
+ uint16_t ChunkCount;
+};
+
+struct FileAllocationTable
+{
+ uint32_t Id;
+ uint32_t ChunkSize;
+ uint16_t FileCount;
+ uint16_t Reserved;
+};
+
+struct FileAllocationTableEntry
+{
+ uint32_t Start;
+ uint32_t End;
+};
+
+struct FileNameTable
+{
+ uint32_t Id;
+ uint32_t ChunkSize;
+};
+
+struct FileNameTableEntry
+{
+ uint32_t Offset;
+ uint16_t FirstFileId;
+ uint16_t Utility;
+};
+
+struct FileImages
+{
+ uint32_t Id;
+ uint32_t ChunkSize;
+};
+
+#endif //GUARD_NARC_H