Multiple chunks of the same ID


Designing IFFChunkTool I was not aware that IFF files can contain multiple chunks with the same chunk ID. For example system preferences files. "ENV:Sys/font.prefs" contains 3 'FONT' chunks.

Release 1.1 adds support for such chunks. They are enumerated and may be referenced by chunk ID plus ordinal number separated by a dot. For example 'FONT.0', 'FONT.1' and so on. ID without a number means chunk 0, so the system is backwards compatible.

LIST operation mode adds numbers when there is more than one chunk of given ID.  Modes: DUMP, EXTRACT, REMOVE, REPLACE and INSERT (in AFTER argument) accept enumerated chunks.

A small example. Inserting 'ABCD' chunk after the second 'FONT' chunk in a file:

IFFChunkTool ENV:Sys/font.prefs INSERT ABCD "some contents" AFTER FONT.1 TO RAM:modified.prefs

Files

iffchunktool-1.1.lha 12 kB
11 days ago

Get IFFChunkTool

Leave a comment

Log in with itch.io to leave a comment.