mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-11 07:11:39 +00:00
kextract <groupfile> (without further filenames) lists all files in the GRP.
git-svn-id: https://svn.eduke32.com/eduke32@2065 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
b63f7e558b
commit
eba8de3007
1 changed files with 15 additions and 3 deletions
|
@ -37,13 +37,17 @@ int main(int argc, char **argv)
|
|||
{
|
||||
int i, j, k, l, fil, fil2;
|
||||
|
||||
if (argc < 3)
|
||||
int onlylist = (argc==2);
|
||||
|
||||
if (argc < 2)
|
||||
{
|
||||
printf("KEXTRACT [grouped file][@file or filespec...] by Kenneth Silverman\n");
|
||||
printf("KEXTRACT <groupfile.grp> [@file or filespec...] by Kenneth Silverman\n");
|
||||
printf(" This program extracts files from a previously grouped group file.\n");
|
||||
printf(" You can extract files using the ? and * wildcards.\n");
|
||||
printf(" Ex: kextract stuff.dat tiles000.art nukeland.map palette.dat\n");
|
||||
printf(" (stuff.dat is the group file, the rest are the files to extract)\n");
|
||||
printf(" (stuff.dat is the group file, the rest are the files to extract)\n");
|
||||
printf(" kextract stuff.grp\n");
|
||||
printf(" (simply lists the contents of stuff.grp)\n");
|
||||
return(0);
|
||||
}
|
||||
|
||||
|
@ -77,6 +81,14 @@ int main(int argc, char **argv)
|
|||
}
|
||||
fileoffs[numfiles] = j;
|
||||
|
||||
if (onlylist)
|
||||
{
|
||||
for (i=0; i<numfiles; i++)
|
||||
printf("%s\t\t%d\n", filelist[i], fileoffs[i+1]-fileoffs[i]);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
for(i=0;i<numfiles;i++) marked4extraction[i] = 0;
|
||||
|
||||
anyfiles4extraction = 0;
|
||||
|
|
Loading…
Reference in a new issue