More features added


I have just implemented two planned features and one not planned.

First, for modes, which alter IFF structure, there is an option to omit the destination file. In this case the source file is modified "in-place". Well, its a lie... It is not possible (or, at least, feasible) to read and wrtite an IFF file at the same time. How it really works? A temporary output file is created in the same directory as the input file. If there are no processing errors, the input file is deleted, then the output file is renamed to the input one.

The second planned feature is a possibility to insert arbitrary bytes in a chunk contents passed as text. It is done via escape sequences. Escape character is followed by two hexadecimal digits. Initially I've chosen a backslash as the escape character. It turned out that it creates problems in makefiles. Make tries to be smart and escapes backslashes (by adding a second one) in strings sent to shell. I've used percent sign instead, so escape sequences are the same as in URL-s.

Finally to make IFFChunkTool complete, I have added a new operation mode NEW, which creates an empty IFF of given type. Now one can create any IFF file from scratch, starting from an empty one, then adding chunks to it one by one. For example empty 8SVX audio:

IFFChunkTool emptyaudio.iff NEW 8SVX

Release of version 0.3 is expected in a few days.

Get IFFChunkTool

Leave a comment

Log in with itch.io to leave a comment.