# Sonic CD Decompilation

> Built from commit 3effc4a043e0 on 2026-11-24. The current build: https://abdess.github.io/retrobios/version.json

Source: https://abdess.github.io/retrobios/emulators/soniccd/

Sonic CD Decompilation emulates Sonic CD. It reads 1 file, 1 of them required: without a required file it does not start games.

**About this profile**

| Detail | Value |
|---|---|
| Type | standalone |
| Classification | Game engine |
| Source | [https://github.com/RSDKModding/RSDKv3-Decompilation](https://github.com/RSDKModding/RSDKv3-Decompilation) |
| Version | 1.3.3, stated in [`CMakeLists.txt`](https://github.com/RSDKModding/RSDKv3-Decompilation/blob/2a7fd8b70f1b33553e0d6c67491d07e8290b80c1/CMakeLists.txt) |
| Revision | [RSDKModding/RSDKv3-Decompilation@2a7fd8b70f1b](https://github.com/RSDKModding/RSDKv3-Decompilation/commit/2a7fd8b70f1b33553e0d6c67491d07e8290b80c1) |
| Run by | [Batocera](https://abdess.github.io/retrobios/platforms/batocera/), [KNULLI](https://abdess.github.io/retrobios/platforms/knulli/), [RetroBat](https://abdess.github.io/retrobios/platforms/retrobat/) |
| Profiled | 2026-10-04 |
| Profile | [YAML](https://github.com/Abdess/retrobios/blob/main/emulators/soniccd.yml), [JSON](https://abdess.github.io/retrobios/api/v1/emulators/soniccd.json) |
| Cores | sonicretrocd |
| Systems | Sonic CD |

**Install this emulator's files**

With Batocera, RetroBat or KNULLI: the installer finds Batocera, RetroBat or KNULLI and its BIOS folder, then downloads only the files Sonic CD Decompilation reads there and checks each one.

**Windows:**

Open Start. Type **PowerShell**, press Enter. Click Copy. Right-click to paste. Press Enter.

PowerShell

```
&([scriptblock]::Create((irm https://abdess.github.io/retrobios/i.ps1))) --emulator soniccd
```

**On the device:**

Open a terminal on the device. Or connect from a computer with SSH, a terminal over the network. Paste the line. Press Enter.

Terminal

```
curl -fsSL https://abdess.github.io/retrobios/i | sh -s -- --emulator soniccd
```

**Technical notes**

Retro Engine v3 decompilation of Sonic CD (2011 Christian Whitehead mobile/Steam port). Single binary, one data pack per install.

CheckRSDKFile only fopen()s the pack. There is no signature test. If the file is absent the engine falls back to a loose Data/ tree. When GameConfig.bin cannot be loaded either way it writes usage.txt describing the layout it wants. ref: [`RSDKv3/Reader.cpp:26-87`](https://github.com/RSDKModding/RSDKv3-Decompilation/blob/2a7fd8b70f1b33553e0d6c67491d07e8290b80c1/RSDKv3/Reader.cpp#L26-L87) (CheckRSDKFile), [`RSDKv3/RetroEngine.cpp:283-321`](https://github.com/RSDKModding/RSDKv3-Decompilation/blob/2a7fd8b70f1b33553e0d6c67491d07e8290b80c1/RSDKv3/RetroEngine.cpp#L283-L321), [`RSDKv3/RetroEngine.cpp:329-366`](https://github.com/RSDKModding/RSDKv3-Decompilation/blob/2a7fd8b70f1b33553e0d6c67491d07e8290b80c1/RSDKv3/RetroEngine.cpp#L329-L366)

settings.ini key Dev:DataFile overrides the default "Data.rsdk". ref: [`RSDKv3/Userdata.cpp:352-353`](https://github.com/RSDKModding/RSDKv3-Decompilation/blob/2a7fd8b70f1b33553e0d6c67491d07e8290b80c1/RSDKv3/Userdata.cpp#L352-L353),[`467-468`](https://github.com/RSDKModding/RSDKv3-Decompilation/blob/2a7fd8b70f1b33553e0d6c67491d07e8290b80c1/RSDKv3/Userdata.cpp#L467-L468), [`RSDKv3/RetroEngine.hpp:437`](https://github.com/RSDKModding/RSDKv3-Decompilation/blob/2a7fd8b70f1b33553e0d6c67491d07e8290b80c1/RSDKv3/RetroEngine.hpp#L437)

Bytecode detection probes two layouts in order after the pack opens: Data/Scripts/ByteCode/GlobalCode.bin (BYTECODE_MOBILE) or GS000.bin (BYTECODE_PC). Either lives inside Data.rsdk when the official pack is present. ref: [`RSDKv3/Reader.cpp:54-82`](https://github.com/RSDKModding/RSDKv3-Decompilation/blob/2a7fd8b70f1b33553e0d6c67491d07e8290b80c1/RSDKv3/Reader.cpp#L54-L82)

## Files

**1 file**: 1 required, 0 optional.

By kind: 1 game data.

In this collection: 0 in repo and 1 missing.

## Game data

### `Data.rsdk` required missing game data

- System: Sonic CD
- Sonic CD assets (RSDK v3 container). Shipped with the official Sonic CD release (Steam, iOS, Android, Sonic Origins). The engine opens the file with fopen(). Content is validated by trying to load Data/Scripts/ByteCode/GlobalCode.bin or GS000.bin from inside, not by hashing the pack.

**Source**

- Source: [`RSDKv3/Userdata.cpp:352`](https://github.com/RSDKModding/RSDKv3-Decompilation/blob/2a7fd8b70f1b33553e0d6c67491d07e8290b80c1/RSDKv3/Userdata.cpp#L352) (default name), [`RSDKv3/Userdata.cpp:467-468`](https://github.com/RSDKModding/RSDKv3-Decompilation/blob/2a7fd8b70f1b33553e0d6c67491d07e8290b80c1/RSDKv3/Userdata.cpp#L467-L468) (Dev:DataFile), [`RSDKv3/RetroEngine.cpp:302-305`](https://github.com/RSDKModding/RSDKv3-Decompilation/blob/2a7fd8b70f1b33553e0d6c67491d07e8290b80c1/RSDKv3/RetroEngine.cpp#L302-L305) (CheckRSDKFile call)

## Next steps

- [Get the files](https://abdess.github.io/retrobios/which-pack/), for the setup in use
- [Every system](https://abdess.github.io/retrobios/systems/), and the files each one needs
- [When a game does not start](https://abdess.github.io/retrobios/wiki/troubleshooting/)

Data as of 24 November 2026.
