summaryrefslogtreecommitdiffstats
path: root/src/Directory.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/Directory.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/Directory.h b/src/Directory.h
new file mode 100644
index 00000000..06e6bba4
--- /dev/null
+++ b/src/Directory.h
@@ -0,0 +1,22 @@
+#pragma once
+
+class CDirectory
+{
+public:
+ struct DirectoryInfo {
+ uint32 offset;
+ uint32 size;
+ char name[24];
+ };
+ DirectoryInfo *entries;
+ int32 maxEntries;
+ int32 numEntries;
+
+ CDirectory(int32 maxEntries);
+ ~CDirectory(void);
+
+ void ReadDirFile(const char *filename);
+ bool WriteDirFile(const char *filename);
+ void AddItem(const DirectoryInfo &dirinfo);
+ bool FindItem(const char *name, uint32 &offset, uint32 &size);
+};