diff options
| author | jakob <jakob@memeware.net> | 2017-01-09 20:51:41 -0500 |
|---|---|---|
| committer | jakob <jakob@memeware.net> | 2017-01-09 20:51:41 -0500 |
| commit | 8eaa3f0526d380afe422152fada2bea27b8d8f70 (patch) | |
| tree | eded2f25609b6d131a377233fb215efac2b31c18 /src/write.h | |
| parent | 7d141c7e79bb9688a475b88722f6101ad01ef782 (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.h | 14 |
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); |