[Extractor-gtk-cvslog] SF.net SVN: extractor-gtk: [77] trunk/extractor/solid.c
Extract files from unusual archive formats
Brought to you by:
someone-guy
From: <som...@us...> - 2008-04-06 21:39:33
|
Revision: 77 http://extractor-gtk.svn.sourceforge.net/extractor-gtk/?rev=77&view=rev Author: someone-guy Date: 2008-04-06 14:39:31 -0700 (Sun, 06 Apr 2008) Log Message: ----------- Also display "file" sizes for Metal Gear vox.dat Modified Paths: -------------- trunk/extractor/solid.c Modified: trunk/extractor/solid.c =================================================================== --- trunk/extractor/solid.c 2008-04-06 21:34:41 UTC (rev 76) +++ trunk/extractor/solid.c 2008-04-06 21:39:31 UTC (rev 77) @@ -67,6 +67,8 @@ return !feof(in); } +static int do_extract(FILE *in, const file_t *file, FILE *outf, uint8_t *outb, int max_size); + static file_t *get_list(FILE *in) { int cnt = 0; file_t *list = calloc(1, sizeof(file_t)); @@ -96,6 +98,8 @@ fseek(in, 8, SEEK_CUR); fseek(in, len - 16, SEEK_CUR); } + for (cnt = 0; list[cnt].name; cnt++) + list[cnt].len = do_extract(in, &list[cnt], NULL, NULL, 0); return list; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |