Mercurial > hg > dmlib
changeset 1120:c1583a2278ec
Fix '-n' option handling for packed.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 04 Mar 2015 03:53:22 +0200 |
parents | 007a9446256c |
children | 043b5942fdb6 |
files | tools/packed.c |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/tools/packed.c Wed Mar 04 03:46:23 2015 +0200 +++ b/tools/packed.c Wed Mar 04 03:53:22 2015 +0200 @@ -35,7 +35,7 @@ char * excFilenames[SET_MAX_FILES]; char * optPackFilename = NULL; -BOOL optCompress = TRUE; +BOOL optDoCompress = TRUE; int optCompressLevel = Z_BEST_COMPRESSION; int optCommand = CMD_NONE; int optDefResFlags = 0; @@ -100,7 +100,7 @@ break; case 6: - optCompress = FALSE; + optDoCompress = FALSE; break; case 7: @@ -674,7 +674,7 @@ { DMPackEntry *node = NULL; int res = dmPackAddFile(pack, srcFilenames[i], - optDefResFlags, optCompress, + optDefResFlags, optDoCompress, optCompressLevel, &node); if (res != DMERR_OK) @@ -783,7 +783,7 @@ node->filename, node->size, node->length, node->offset, node->flags); - dmPackExtractFile(pack, node, !optCompress); + dmPackExtractFile(pack, node, optDoCompress); } }