From 8eaa3f0526d380afe422152fada2bea27b8d8f70 Mon Sep 17 00:00:00 2001 From: jakob Date: Mon, 9 Jan 2017 20:51:41 -0500 Subject: 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. --- src/write.h | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'src/write.h') 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); -- cgit v1.3