Jump to content
Setting up an AI agent? ReverseEngineering.wiki skill (works from the command line, no configuration): https://reverseengineering.wiki/skill/rewiki/SKILL.md · setup for every client, including MCP: https://reverseengineering.wiki/llms.txt · REWiki:Connect

Format:CloneCD CCD, IMG and SUB

From ReverseEngineering.wiki
Format
Magic text: first line [CloneCD]
Extensions .ccd, .img, .sub
On this wiki Facts · Code · Notes · Topics

CloneCD disc image: a text .ccd control file ([CloneCD], [Disc], [Session], [Entry] sections), a raw sector file .img and an optional .sub file with 96 bytes of subchannel per sector.

Files

The three files share a base name. In Aaru's reader (LGPL-2.1 or later) the .img file holds the sector data, and the .sub file, when present, holds 96 bytes per sector, read at SubchannelOffset + sector * 96. The .ccd file is an INI-like text file.

The .ccd text

Sections: [CloneCD] (with Version), [Disc] (TocEntries, Sessions, DataTracksScrambled, CDTextLength, CATALOG), [CDText], [Session n] (PreGapMode, PreGapSubC), [Entry n] (Session, Point, ADR, Control, TrackNo, AMin/ASec/AFrame/ALBA, Zero, PMin/PSec/PFrame/PLBA; one per TOC entry) and [TRACK n] (MODE, INDEX 0/1 = LBA, ...). The names are the regular expressions in Aaru's Constants.cs.

Identification

See the facts. See also Format:CD-ROM raw sector layouts.

Code & repositories

  • https://github.com/aaru-dps/Aaru @ 1eaee6f63254f85e8a1119f4fce1e55f276e0846 · license: LGPL-2.1-or-later (declared by the contributor; GitHub's detector did not recognize LICENSE)
    Aaru.Images plugins for Alcohol 120%, CloneCD and DiscJuggler (Identify.cs, Read.cs, Structs.cs).
    Tested on: source read, not run: read only, no build · checked 2026-10-19; last activity 2026-10-18; Note: the latest release ships binaries; the wiki links only the source, never the binaries