[Extractor-gtk-cvslog] SF.net SVN: extractor-gtk:[89] trunk/extractor
Extract files from unusual archive formats
Brought to you by:
someone-guy
From: <som...@us...> - 2008-08-22 16:05:22
|
Revision: 89 http://extractor-gtk.svn.sourceforge.net/extractor-gtk/?rev=89&view=rev Author: someone-guy Date: 2008-08-22 16:05:19 +0000 (Fri, 22 Aug 2008) Log Message: ----------- Print a supported formats list in help text. Modified Paths: -------------- trunk/extractor/bloodrayne.c trunk/extractor/extractor.c trunk/extractor/formats.h trunk/extractor/generic.c trunk/extractor/homeworld2.c trunk/extractor/nwn.c trunk/extractor/pak.c trunk/extractor/solid.c trunk/extractor/wad.c trunk/extractor/xtre.c Modified: trunk/extractor/bloodrayne.c =================================================================== --- trunk/extractor/bloodrayne.c 2008-08-22 16:04:22 UTC (rev 88) +++ trunk/extractor/bloodrayne.c 2008-08-22 16:05:19 UTC (rev 89) @@ -45,6 +45,7 @@ } const fmt_desc_t bloodrayne_fmt = { + "bloodrayne", "BloodRayne", "BloodRayne (*.pod)", "*.pod;*.POD", Modified: trunk/extractor/extractor.c =================================================================== --- trunk/extractor/extractor.c 2008-08-22 16:04:22 UTC (rev 88) +++ trunk/extractor/extractor.c 2008-08-22 16:05:19 UTC (rev 89) @@ -246,7 +246,11 @@ } static void print_help(void) { + int i; fprintf(stderr, _("Usage: extractor [--|-h|-l] [filename]\n")); + fprintf(stderr, _("Supported formats:\n")); + for (i = 0; fmts[i]; i++) + fprintf(stderr, "%-16s %s\n", fmts[i]->shortname, fmts[i]->name); } int main(int argc, char *argv[]) { Modified: trunk/extractor/formats.h =================================================================== --- trunk/extractor/formats.h 2008-08-22 16:04:22 UTC (rev 88) +++ trunk/extractor/formats.h 2008-08-22 16:05:19 UTC (rev 89) @@ -15,6 +15,7 @@ //! struct describing an archive format and handling functions typedef struct fmt_desc_s { + const char *shortname; ///< short name of format for commandline use const char *name; ///< archive format name const char *desc; ///< archive format description const char *pattern; ///< file name pattern Modified: trunk/extractor/generic.c =================================================================== --- trunk/extractor/generic.c 2008-08-22 16:04:22 UTC (rev 88) +++ trunk/extractor/generic.c 2008-08-22 16:05:19 UTC (rev 89) @@ -181,6 +181,7 @@ } const fmt_desc_t generic_fmt = { + "generic", "Generic File", "Generic File", "*", Modified: trunk/extractor/homeworld2.c =================================================================== --- trunk/extractor/homeworld2.c 2008-08-22 16:04:22 UTC (rev 88) +++ trunk/extractor/homeworld2.c 2008-08-22 16:05:19 UTC (rev 89) @@ -86,6 +86,7 @@ } const fmt_desc_t homeworld2_fmt = { + "homeworld2", "Homeworld 2", "Homeworld 2 (*.big)", "*.big", Modified: trunk/extractor/nwn.c =================================================================== --- trunk/extractor/nwn.c 2008-08-22 16:04:22 UTC (rev 88) +++ trunk/extractor/nwn.c 2008-08-22 16:05:19 UTC (rev 89) @@ -90,6 +90,7 @@ } const fmt_desc_t nwn_fmt = { + "nwn", "Neverwinter Nights (1/2)", "Neverwinter Nights (1/2) (*.mod;*.nwm;*.sav)", "*.mod;*.nwm;*.sav", Modified: trunk/extractor/pak.c =================================================================== --- trunk/extractor/pak.c 2008-08-22 16:04:22 UTC (rev 88) +++ trunk/extractor/pak.c 2008-08-22 16:05:19 UTC (rev 89) @@ -41,6 +41,7 @@ } const fmt_desc_t pak_fmt = { + "pak", "PAK (HalfLife)", "PAK (*.pak)", "*.pak;*.PAK", Modified: trunk/extractor/solid.c =================================================================== --- trunk/extractor/solid.c 2008-08-22 16:04:22 UTC (rev 88) +++ trunk/extractor/solid.c 2008-08-22 16:05:19 UTC (rev 89) @@ -172,6 +172,7 @@ } const fmt_desc_t solid_fmt = { + "solid", "MetalGear Solid: TS", "MetalGear Solid: TS (vox.dat)", "vox.dat", Modified: trunk/extractor/wad.c =================================================================== --- trunk/extractor/wad.c 2008-08-22 16:04:22 UTC (rev 88) +++ trunk/extractor/wad.c 2008-08-22 16:05:19 UTC (rev 89) @@ -50,6 +50,7 @@ } const fmt_desc_t wad_fmt = { + "wad", "WAD (Doom etc.)", "WAD (*.wad)", "*.wad;*.WAD", Modified: trunk/extractor/xtre.c =================================================================== --- trunk/extractor/xtre.c 2008-08-22 16:04:22 UTC (rev 88) +++ trunk/extractor/xtre.c 2008-08-22 16:05:19 UTC (rev 89) @@ -68,6 +68,7 @@ } const fmt_desc_t xtre_fmt = { + "xtre", "Wing Commander IV", "Wing Commander IV (*.tre)", "*.tre", This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |