comparison tools/packed.c @ 1029:c88b879c735c

Add DMF_COMPRESSED flag to compressed entry node flags.
author Matti Hamalainen <ccr@tnsp.org>
date Sun, 01 Mar 2015 16:14:03 +0200
parents 99522b9fa99e
children f7863608d84c
comparison
equal deleted inserted replaced
1028:99522b9fa99e 1029:c88b879c735c
353 strncpy(entry.filename, filename, sizeof(entry.filename)); 353 strncpy(entry.filename, filename, sizeof(entry.filename));
354 entry.filename[sizeof(entry.filename) - 1] = 0; 354 entry.filename[sizeof(entry.filename) - 1] = 0;
355 entry.offset = startOffs; 355 entry.offset = startOffs;
356 entry.size = zstr.total_in; 356 entry.size = zstr.total_in;
357 entry.length = outSize; 357 entry.length = outSize;
358 entry.flags = flags; 358 entry.flags = flags | (compress ? DMF_COMPRESSED : 0);
359 359
360 // Add directory entry 360 // Add directory entry
361 if ((*ppEntry = dmPackEntryCopy(&entry)) == NULL) 361 if ((*ppEntry = dmPackEntryCopy(&entry)) == NULL)
362 { 362 {
363 ret = DMERR_MALLOC; 363 ret = DMERR_MALLOC;