? compress_scumm_bun
RCS file: /cvsroot/scummvm/tools/compress_scumm_bun.cpp,v
retrieving revision 1.24
diff -U3 -r1.24 compress_scumm_bun.cpp
|
|
|
560 | 560 | } |
561 | 561 | firstWord = READ_BE_UINT16(src); |
562 | 562 | src += 2; |
| 563 | printf(" * firstWord: %i\n", firstWord); |
563 | 564 | if (firstWord != 0) { |
564 | 565 | memcpy(dst, src, firstWord); |
565 | 566 | dst += firstWord; |
… |
… |
|
808 | 809 | finalSize = 0; |
809 | 810 | |
810 | 811 | for (i = 0; i < numCompItems; i++) { |
| 812 | printf(" start loop: %i/%i\n", i,numCompItems); |
811 | 813 | compInput[compTable[i].size] = 0; |
812 | 814 | fseek(input, bundleTable[index].offset + compTable[i].offset, SEEK_SET); |
813 | 815 | fread(compInput, 1, compTable[i].size, input); |
… |
… |
|
1161 | 1163 | } |
1162 | 1164 | |
1163 | 1165 | for (i = 0; i < numFiles; i++) { |
| 1166 | printf("start loop: %i/%i\n", i,numFiles); |
1164 | 1167 | if (strcmp(bundleTable[i].filename, "PRELOAD.") == 0) |
1165 | 1168 | continue; |
1166 | 1169 | int offsetData = 0, bits = 0, freq = 0, channels = 0, size = 0; |
1167 | 1170 | byte *compFinal = decompressBundleSound(i, input, size); |
| 1171 | printf(" * after decompressBundleSound\n"); |
1168 | 1172 | writeToRMAPFile(compFinal, output, bundleTable[i].filename, offsetData, bits, freq, channels); |
1169 | | writeRegions(compFinal + offsetData, bits, freq, channels, outputDir, bundleTable[i].filename, output); |
| 1173 | //writeRegions(compFinal + offsetData, bits, freq, channels, outputDir, bundleTable[i].filename, output); |
1170 | 1174 | free(compFinal); |
1171 | 1175 | } |
1172 | 1176 | |