summaryrefslogtreecommitdiff
path: root/src/write.h
diff options
context:
space:
mode:
authorjakob <jakob@memeware.net>2017-01-09 20:51:41 -0500
committerjakob <jakob@memeware.net>2017-01-09 20:51:41 -0500
commit8eaa3f0526d380afe422152fada2bea27b8d8f70 (patch)
treeeded2f25609b6d131a377233fb215efac2b31c18 /src/write.h
parent7d141c7e79bb9688a475b88722f6101ad01ef782 (diff)
Significant progress on implementing file decryption. Offsets as of now are trying to go from within the table, which is incorrect. A working commit should come tomorrow.
Diffstat (limited to 'src/write.h')
-rw-r--r--src/write.h14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/write.h b/src/write.h
index 4b8c717..d37adda 100644
--- a/src/write.h
+++ b/src/write.h
@@ -17,8 +17,12 @@
/* Because File entries won't necessarily follow the associated
eliF entry, filenames and hashes are stored in a linked list. */
-typedef struct node {
- uint32_t key;
- char *file_name;
- struct node *next;
-} node;
+typedef struct elif_node {
+ uint32_t key; /* Key associated with matching File entry. */
+ char *file_name; /* Name of file. */
+ struct elif_node *next; /* Pointer to the next node. */
+} elif_node;
+
+/* Iterates through the linked list of file entries and writes every
+ entry to disk, according to information specified by the node. */
+void write_files(file_node *file_root, elif_node *elif_root, Bytef *start);