My cue file generation tool is now available from
http://www.cdiemu.org/download/cdifile-0.5.1.zip; as a bonus I have added raw image file extraction and direct chd file creation (the latter is implemented by calling chdman with suitable parameters).
The cdifile program incorporates source code from MAME/MESS (specifically, the lib/util directory and parts of the osd and osd/windows directories) written by Aaron Giles, as allowed by the revised license for these files in the 0.134u3 update release. Could somebody please ask him to verify that my distribution complies with his license?
An extract from the documentation of cdifile:
The purpose of the CD-i File Extractor program (cdifile) is to extract data from CD-i files.
With the current version of cdifile you can extract the following from any CD-i disc image file that is supported by CD-i Emulator:
- raw file in mode2_raw format with 2352 bytes/sector
- cue file compatible with chdman (chd management tool from MAME/MESS)
- chd file compatible with MAME/MESS (requires chdman)
CD-i Emulator supports "raw disc image" file formats with sector sizes of 2448, 2352, 2340, 2336 and 2332 bytes, with or without two-second pregap and/or scrambling. This should cover all the "raw disc image" file formats out there. In particular, the Nero (.nrg) file format for track-at-once images is supported, as well as the IsoBuster (.bin) and CloneCD (.img) files. A future version of CD-i Emulator will also support MAME/MESS compressed hunk data (.chd) files; cdifile already supports such files and can be used to extract data from them.
To convert a CD-i disc image file to chd format:
cdifile CDIFILE -createcd
This will create a temporary .cue$ file and (if necessary) .raw$ file, call chdman to convert this to a .chd file and delete the temporaries.
More information can be found in the README and cdifile.txt files included in the distribution.