# Sonic 3 A.I.R.

> 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/sonic3-air/

Sonic 3 A.I.R. emulates Sonic 3 AIR. It reads 2 files, 1 of them required: without a required file it does not start games.

The app reads its files from this folder:

**Windows:**

`%APPDATA%/Sonic3AIR/`

A savedata folder in the working directory is used instead when it exists. A redirect.json in the root can point elsewhere.

Source: [`Oxygen/oxygenengine/source/oxygen/engine/EngineMain.cpp:379-396`](https://github.com/Eukaryot/sonic3air/blob/b0063dfb4b3e69d710e131ab83507cdf8c41910f/Oxygen/oxygenengine/source/oxygen/engine/EngineMain.cpp#L379-L396), [`Oxygen/oxygenengine/source/oxygen/platform/PlatformFunctions.cpp:356-366`](https://github.com/Eukaryot/sonic3air/blob/b0063dfb4b3e69d710e131ab83507cdf8c41910f/Oxygen/oxygenengine/source/oxygen/platform/PlatformFunctions.cpp#L356-L366), [`Oxygen/sonic3air/source/sonic3air/EngineDelegate.cpp:47`](https://github.com/Eukaryot/sonic3air/blob/b0063dfb4b3e69d710e131ab83507cdf8c41910f/Oxygen/sonic3air/source/sonic3air/EngineDelegate.cpp#L47)

**macOS:**

`~/Library/Application Support/sonic3air/Sonic3AIR/`

A redirect.json in the root can point elsewhere.

Source: [`Oxygen/sonic3air/build/_xcode/sonic3air_MacApp/AppDelegate.mm:40-53`](https://github.com/Eukaryot/sonic3air/blob/b0063dfb4b3e69d710e131ab83507cdf8c41910f/Oxygen/sonic3air/build/_xcode/sonic3air_MacApp/AppDelegate.mm#L40-L53), [`Oxygen/oxygenengine/source/oxygen/engine/EngineMain.cpp:379-396`](https://github.com/Eukaryot/sonic3air/blob/b0063dfb4b3e69d710e131ab83507cdf8c41910f/Oxygen/oxygenengine/source/oxygen/engine/EngineMain.cpp#L379-L396)

**Linux:**

`$XDG_DATA_HOME/Sonic3AIR/`

~/.local/share/Sonic3AIR when XDG_DATA_HOME is unset. A savedata folder in the working directory is used instead when it exists. A redirect.json in the root can point elsewhere.

Source: [`Oxygen/oxygenengine/source/oxygen/engine/EngineMain.cpp:379-396`](https://github.com/Eukaryot/sonic3air/blob/b0063dfb4b3e69d710e131ab83507cdf8c41910f/Oxygen/oxygenengine/source/oxygen/engine/EngineMain.cpp#L379-L396), [`Oxygen/oxygenengine/source/oxygen/platform/PlatformFunctions.cpp:139-152`](https://github.com/Eukaryot/sonic3air/blob/b0063dfb4b3e69d710e131ab83507cdf8c41910f/Oxygen/oxygenengine/source/oxygen/platform/PlatformFunctions.cpp#L139-L152), [`Oxygen/oxygenengine/source/oxygen/platform/PlatformFunctions.cpp:367-372`](https://github.com/Eukaryot/sonic3air/blob/b0063dfb4b3e69d710e131ab83507cdf8c41910f/Oxygen/oxygenengine/source/oxygen/platform/PlatformFunctions.cpp#L367-L372)

**Android:**

`Android/data/org.eukaryot.sonic3air/files/`, on the internal storage.

Source: [`Oxygen/oxygenengine/source/oxygen/engine/EngineMain.cpp:366-375`](https://github.com/Eukaryot/sonic3air/blob/b0063dfb4b3e69d710e131ab83507cdf8c41910f/Oxygen/oxygenengine/source/oxygen/engine/EngineMain.cpp#L366-L375), [`Oxygen/sonic3air/build/_android/app/build.gradle:15`](https://github.com/Eukaryot/sonic3air/blob/b0063dfb4b3e69d710e131ab83507cdf8c41910f/Oxygen/sonic3air/build/_android/app/build.gradle#L15)

**iOS:**

`Documents/`

The app's own Documents folder, listed by the Files app under the app.

Source: [`Oxygen/sonic3air/build/_xcode/sonic3air_iosApp/main.mm:32-43`](https://github.com/Eukaryot/sonic3air/blob/b0063dfb4b3e69d710e131ab83507cdf8c41910f/Oxygen/sonic3air/build/_xcode/sonic3air_iosApp/main.mm#L32-L43)

**About this profile**

| Detail | Value |
|---|---|
| Type | standalone |
| Classification | Game engine |
| Source | [https://github.com/Eukaryot/sonic3air](https://github.com/Eukaryot/sonic3air) |
| Version | 26.08.15.0, stated in [`Oxygen/sonic3air/source/sonic3air/version.inc`](https://github.com/Eukaryot/sonic3air/blob/b0063dfb4b3e69d710e131ab83507cdf8c41910f/Oxygen/sonic3air/source/sonic3air/version.inc) |
| Revision | [Eukaryot/sonic3air@b0063dfb4b3e](https://github.com/Eukaryot/sonic3air/commit/b0063dfb4b3e69d710e131ab83507cdf8c41910f) |
| 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/sonic3-air.yml), [JSON](https://abdess.github.io/retrobios/api/v1/emulators/sonic3-air.json) |
| Cores | sonic3air |
| Systems | [Sonic 3 AIR](https://abdess.github.io/retrobios/systems/game-engines/#sonic-3-air) |
| Data folder (Windows) | `%APPDATA%/Sonic3AIR/` |
| Data folder (macOS) | `~/Library/Application Support/sonic3air/Sonic3AIR/` |
| Data folder (Linux) | `$XDG_DATA_HOME/Sonic3AIR/` |
| Data folder (Android) | `Android/data/org.eukaryot.sonic3air/files/` |
| Data folder (iOS) | `Documents/` |

**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 3 A.I.R. 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 sonic3-air
```

**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 sonic3-air
```

**Technical notes**

Sonic 3 - Angel Island Revisited by Eukaryot. The Oxygen Engine runs the decompiled game logic (lemon scripts) against the original Genesis ROM loaded at runtime. The ROM is not shipped with the engine.

ROM search order (ResourcesCache::loadRom):

1. GameAppData/<SteamRomName>
2. Last known ROM path (settings.json RomPath)
3. Configured RomPath (config.json)
4. SteamRomName in the install directory
5. Steam library .../Sega Classics/uncompressed ROMs/<SteamRomName>
6. User-picked file via native file dialog (filter *.bin) ref: [`Oxygen/oxygenengine/source/oxygen/resources/ResourcesCache.cpp:19-115`](https://github.com/Eukaryot/sonic3air/blob/b0063dfb4b3e69d710e131ab83507cdf8c41910f/Oxygen/oxygenengine/source/oxygen/resources/ResourcesCache.cpp#L19-L115), [`Oxygen/oxygenengine/source/oxygen/application/GameLoader.cpp:60-94`](https://github.com/Eukaryot/sonic3air/blob/b0063dfb4b3e69d710e131ab83507cdf8c41910f/Oxygen/oxygenengine/source/oxygen/application/GameLoader.cpp#L60-L94), [`Oxygen/oxygenengine/source/oxygen/platform/PlatformFunctions.cpp:379-408`](https://github.com/Eukaryot/sonic3air/blob/b0063dfb4b3e69d710e131ab83507cdf8c41910f/Oxygen/oxygenengine/source/oxygen/platform/PlatformFunctions.cpp#L379-L408)

ROM validation (ResourcesCache::loadRomFile + checkRomContent):

1. Read file into memory.
2. applyRomModifications: XOR optional diff file, blank regions, then byte overwrites from the active RomInfo. The default S3K_Steam entry sets offset 0x2001f0 = 0x4a (patches the ROM header checksum field so the Steam dump matches the authoritative hash).
3. Size check: must equal 0x400000 (4 MiB).
4. Content check: Murmur2_64 of the full post-modification ROM must equal 0x344983ffcfeff8cb. ref: [`Oxygen/oxygenengine/source/oxygen/resources/ResourcesCache.cpp:152-282`](https://github.com/Eukaryot/sonic3air/blob/b0063dfb4b3e69d710e131ab83507cdf8c41910f/Oxygen/oxygenengine/source/oxygen/resources/ResourcesCache.cpp#L152-L282), [`Oxygen/sonic3air/source/sonic3air/ConfigurationImpl.cpp:33-47`](https://github.com/Eukaryot/sonic3air/blob/b0063dfb4b3e69d710e131ab83507cdf8c41910f/Oxygen/sonic3air/source/sonic3air/ConfigurationImpl.cpp#L33-L47), [`Oxygen/sonic3air/oxygenproject.json:9-20`](https://github.com/Eukaryot/sonic3air/blob/b0063dfb4b3e69d710e131ab83507cdf8c41910f/Oxygen/sonic3air/oxygenproject.json#L9-L20)

The engine ships four data packages (enginedata.bin, gamedata.bin, audiodata.bin, audioremaster.bin). Three are required and part of the release, while audioremaster.bin is optional and downloaded on demand from [https://sonic3air.org/download/audioremaster.bin](https://sonic3air.org/download/audioremaster.bin) when the user enables the remastered soundtrack. ref: [`Oxygen/sonic3air/oxygenproject.json:32-38`](https://github.com/Eukaryot/sonic3air/blob/b0063dfb4b3e69d710e131ab83507cdf8c41910f/Oxygen/sonic3air/oxygenproject.json#L32-L38), [`Oxygen/sonic3air/source/sonic3air/EngineDelegate.cpp:115-118`](https://github.com/Eukaryot/sonic3air/blob/b0063dfb4b3e69d710e131ab83507cdf8c41910f/Oxygen/sonic3air/source/sonic3air/EngineDelegate.cpp#L115-L118), [`Oxygen/sonic3air/source/sonic3air/audio/RemasteredMusicDownload.cpp:48-62`](https://github.com/Eukaryot/sonic3air/blob/b0063dfb4b3e69d710e131ab83507cdf8c41910f/Oxygen/sonic3air/source/sonic3air/audio/RemasteredMusicDownload.cpp#L48-L62)

The packages are written by the game binary itself when run with -pack from Oxygen/sonic3air/ (PackageBuilder::performPacking), which the mastering scripts call before copying the results to the release image. gamedata.bin data/ without data/audio/ and data/metadata.json audiodata.bin data/audio/original/ audioremaster.bin data/audio/remastered/ enginedata.bin ../oxygenengine/data/ Each package is a flat container: "OPCK", format version 3, content version BUILD_NUMBER, then one entry per file keyed by its path relative to the base directory, in std::map order. Packing reads the data directories only. The ROM is not involved. ref: [`Oxygen/sonic3air/source/sonic3air/main.cpp:92-97`](https://github.com/Eukaryot/sonic3air/blob/b0063dfb4b3e69d710e131ab83507cdf8c41910f/Oxygen/sonic3air/source/sonic3air/main.cpp#L92-L97), [`Oxygen/sonic3air/source/sonic3air/helper/PackageBuilder.cpp:16-63`](https://github.com/Eukaryot/sonic3air/blob/b0063dfb4b3e69d710e131ab83507cdf8c41910f/Oxygen/sonic3air/source/sonic3air/helper/PackageBuilder.cpp#L16-L63), [`Oxygen/oxygenengine/source/oxygen/file/FilePackage.cpp:44-151`](https://github.com/Eukaryot/sonic3air/blob/b0063dfb4b3e69d710e131ab83507cdf8c41910f/Oxygen/oxygenengine/source/oxygen/file/FilePackage.cpp#L44-L151), [`Oxygen/oxygenengine/source/oxygen/file/FilePackage.h:28-30`](https://github.com/Eukaryot/sonic3air/blob/b0063dfb4b3e69d710e131ab83507cdf8c41910f/Oxygen/oxygenengine/source/oxygen/file/FilePackage.h#L28-L30), [`Oxygen/sonic3air/source/sonic3air/version.inc:1`](https://github.com/Eukaryot/sonic3air/blob/b0063dfb4b3e69d710e131ab83507cdf8c41910f/Oxygen/sonic3air/source/sonic3air/version.inc#L1), [`Oxygen/sonic3air/___internal/mastering/mastering_linux.sh:48-52`](https://github.com/Eukaryot/sonic3air/blob/b0063dfb4b3e69d710e131ab83507cdf8c41910f/Oxygen/sonic3air/___internal/mastering/mastering_linux.sh#L48-L52)

Each package is opened from the game data directory, data/ under the install directory, then from data/ under the app-data directory, where the downloader saves audioremaster.bin. Package paths below are relative to either root, the app-data one being the folder named in [the data folder](https://abdess.github.io/retrobios/emulators/sonic3-air/#data-folder). ref: [`Oxygen/oxygenengine/source/oxygen/engine/EngineMain.cpp:643-651`](https://github.com/Eukaryot/sonic3air/blob/b0063dfb4b3e69d710e131ab83507cdf8c41910f/Oxygen/oxygenengine/source/oxygen/engine/EngineMain.cpp#L643-L651), [`Oxygen/oxygenengine/source/oxygen/application/Configuration.cpp:288-289`](https://github.com/Eukaryot/sonic3air/blob/b0063dfb4b3e69d710e131ab83507cdf8c41910f/Oxygen/oxygenengine/source/oxygen/application/Configuration.cpp#L288-L289)

Only one RomInfo is declared (S3K_Steam). The engine does not support on-the-fly Sonic 3 + Sonic & Knuckles lock-on concatenation at run time, so the user must supply the 4 MiB combined ROM (as distributed with Sega Mega Drive & Genesis Classics / Sonic Origins).

## Files

**2 files**: 1 required, 1 optional. 3 more files come with the app.

By kind: 5 game data.

In this collection: 1 in repo and 1 missing.

## Game data

### `Sonic_Knuckles_wSonic3.bin` required missing game data

- System: [Sonic 3 AIR](https://abdess.github.io/retrobios/systems/game-engines/#sonic-3-air)
- Sonic 3 & Knuckles combined ROM as shipped on Steam (Sega Mega Drive and Genesis Classics / Sonic Origins). Expected size 0x400000 bytes. After the engine overwrites offset 0x2001f0 with 0x4a, Murmur2_64 of the whole buffer must equal 0x344983ffcfeff8cb (not CRC32: the hash is computed with rmx::getMurmur2_64 over mRom). The engine also accepts a user-picked .bin via the native file-selection dialog that satisfies the same post-modification check.

- Size: 4.0 MB (4,194,304 bytes)

**Validation and source**

- Validation: size
- Source: [`Oxygen/sonic3air/source/sonic3air/ConfigurationImpl.cpp:39-46`](https://github.com/Eukaryot/sonic3air/blob/b0063dfb4b3e69d710e131ab83507cdf8c41910f/Oxygen/sonic3air/source/sonic3air/ConfigurationImpl.cpp#L39-L46) (fillDefaultGameProfile), [`Oxygen/oxygenengine/source/oxygen/resources/ResourcesCache.cpp:262-277`](https://github.com/Eukaryot/sonic3air/blob/b0063dfb4b3e69d710e131ab83507cdf8c41910f/Oxygen/oxygenengine/source/oxygen/resources/ResourcesCache.cpp#L262-L277) (checkRomContent)

### `audioremaster.bin` optional in repo game data

- Path: `data/audioremaster.bin`, in [the data folder](https://abdess.github.io/retrobios/emulators/sonic3-air/#data-folder)
- System: [Sonic 3 AIR](https://abdess.github.io/retrobios/systems/game-engines/#sonic-3-air)
- Remastered soundtrack package (131677405 bytes). Downloaded on demand from [https://sonic3air.org/download/audioremaster.bin](https://sonic3air.org/download/audioremaster.bin), saved as data/audioremaster.bin under the app-data directory and reloaded via EngineMain::reloadFilePackage. Absent at first launch. The engine falls back to the emulated FM soundtrack.

- Collection copy: [`bios/Game Engines/Sonic 3 AIR/sonic3-air/data/audioremaster.bin`](https://abdess.github.io/retrobios/systems/game-engines/#sha1-8ecd7378026c)

**Source**

- Source: [`Oxygen/sonic3air/source/sonic3air/EngineDelegate.cpp:118`](https://github.com/Eukaryot/sonic3air/blob/b0063dfb4b3e69d710e131ab83507cdf8c41910f/Oxygen/sonic3air/source/sonic3air/EngineDelegate.cpp#L118) (mDataPackages, Required=false), [`Oxygen/sonic3air/source/sonic3air/audio/RemasteredMusicDownload.cpp:45-62`](https://github.com/Eukaryot/sonic3air/blob/b0063dfb4b3e69d710e131ab83507cdf8c41910f/Oxygen/sonic3air/source/sonic3air/audio/RemasteredMusicDownload.cpp#L45-L62)

## Comes with the app

### `enginedata.bin` comes with the app game data

- Path: `data/enginedata.bin`
- System: [Sonic 3 AIR](https://abdess.github.io/retrobios/systems/game-engines/#sonic-3-air)
- Oxygen Engine data package, packed from Oxygen/oxygenengine/data/ (fonts, images, shaders, sprites, oxygen_icon.png). A required package that cannot be opened closes the application, unless the data is present unpacked (data/images/icon.png exists). The engine then checks for oxygen_icon.png in the engine data and stops when it is absent ([`Oxygen/oxygenengine/source/oxygen/engine/EngineMain.cpp:584-593`](https://github.com/Eukaryot/sonic3air/blob/b0063dfb4b3e69d710e131ab83507cdf8c41910f/Oxygen/oxygenengine/source/oxygen/engine/EngineMain.cpp#L584-L593)). Shipped under data/ in the v26.03.28.0 Windows zip, Linux tar.gz and APK.

- Size: 496.1 KB, SHA1 8b54d9f85028

**Hashes and source**

- SHA1: `8b54d9f850288325b5bac6e5a0cd4b496d6310d4`
- MD5: `760334d49c9bd08309e12b8841731576`
- Source: [`Oxygen/sonic3air/source/sonic3air/EngineDelegate.cpp:115`](https://github.com/Eukaryot/sonic3air/blob/b0063dfb4b3e69d710e131ab83507cdf8c41910f/Oxygen/sonic3air/source/sonic3air/EngineDelegate.cpp#L115), [`Oxygen/oxygenengine/source/oxygen/engine/EngineMain.cpp:603-617`](https://github.com/Eukaryot/sonic3air/blob/b0063dfb4b3e69d710e131ab83507cdf8c41910f/Oxygen/oxygenengine/source/oxygen/engine/EngineMain.cpp#L603-L617), [`Oxygen/oxygenengine/source/oxygen/engine/EngineMain.cpp:643-651`](https://github.com/Eukaryot/sonic3air/blob/b0063dfb4b3e69d710e131ab83507cdf8c41910f/Oxygen/oxygenengine/source/oxygen/engine/EngineMain.cpp#L643-L651), [`Oxygen/sonic3air/source/sonic3air/helper/PackageBuilder.cpp:57-62`](https://github.com/Eukaryot/sonic3air/blob/b0063dfb4b3e69d710e131ab83507cdf8c41910f/Oxygen/sonic3air/source/sonic3air/helper/PackageBuilder.cpp#L57-L62)

### `gamedata.bin` comes with the app game data

- Path: `data/gamedata.bin`
- System: [Sonic 3 AIR](https://abdess.github.io/retrobios/systems/game-engines/#sonic-3-air)
- Game data package, packed from Oxygen/sonic3air/data/ without the audio directory and metadata.json (binary tables, fonts, images, rawdata, sprites). A required package that cannot be opened closes the application, unless the data is present unpacked (data/images/icon.png exists). Shipped under data/ in the v26.03.28.0 Windows zip, Linux tar.gz and APK.

- Size: 3.5 MB, SHA1 7e84e6798d6b

**Hashes and source**

- SHA1: `7e84e6798d6bf2196b14eeac5f96d4b9e37a27a4`
- MD5: `793157701edac935c1662832b93b92cb`
- Source: [`Oxygen/sonic3air/source/sonic3air/EngineDelegate.cpp:116`](https://github.com/Eukaryot/sonic3air/blob/b0063dfb4b3e69d710e131ab83507cdf8c41910f/Oxygen/sonic3air/source/sonic3air/EngineDelegate.cpp#L116), [`Oxygen/oxygenengine/source/oxygen/engine/EngineMain.cpp:603-617`](https://github.com/Eukaryot/sonic3air/blob/b0063dfb4b3e69d710e131ab83507cdf8c41910f/Oxygen/oxygenengine/source/oxygen/engine/EngineMain.cpp#L603-L617), [`Oxygen/oxygenengine/source/oxygen/engine/EngineMain.cpp:643-651`](https://github.com/Eukaryot/sonic3air/blob/b0063dfb4b3e69d710e131ab83507cdf8c41910f/Oxygen/oxygenengine/source/oxygen/engine/EngineMain.cpp#L643-L651), [`Oxygen/sonic3air/source/sonic3air/helper/PackageBuilder.cpp:36-41`](https://github.com/Eukaryot/sonic3air/blob/b0063dfb4b3e69d710e131ab83507cdf8c41910f/Oxygen/sonic3air/source/sonic3air/helper/PackageBuilder.cpp#L36-L41)

### `audiodata.bin` comes with the app game data

- Path: `data/audiodata.bin`
- System: [Sonic 3 AIR](https://abdess.github.io/retrobios/systems/game-engines/#sonic-3-air)
- Audio data package, packed from Oxygen/sonic3air/data/audio/original/ (emulated soundtrack definitions and prototype SMPS tracks). A required package that cannot be opened closes the application, unless the data is present unpacked (data/images/icon.png exists). Shipped under data/ in the v26.03.28.0 Windows zip, Linux tar.gz and APK.

- Size: 2.2 MB, SHA1 2f8e0e046a60

**Hashes and source**

- SHA1: `2f8e0e046a60b75229d90e1f1b7b02823ec05d90`
- MD5: `9b6aa7442bbac1053b91ab72a889b0b1`
- Source: [`Oxygen/sonic3air/source/sonic3air/EngineDelegate.cpp:117`](https://github.com/Eukaryot/sonic3air/blob/b0063dfb4b3e69d710e131ab83507cdf8c41910f/Oxygen/sonic3air/source/sonic3air/EngineDelegate.cpp#L117), [`Oxygen/oxygenengine/source/oxygen/engine/EngineMain.cpp:603-617`](https://github.com/Eukaryot/sonic3air/blob/b0063dfb4b3e69d710e131ab83507cdf8c41910f/Oxygen/oxygenengine/source/oxygen/engine/EngineMain.cpp#L603-L617), [`Oxygen/oxygenengine/source/oxygen/engine/EngineMain.cpp:643-651`](https://github.com/Eukaryot/sonic3air/blob/b0063dfb4b3e69d710e131ab83507cdf8c41910f/Oxygen/oxygenengine/source/oxygen/engine/EngineMain.cpp#L643-L651), [`Oxygen/sonic3air/source/sonic3air/helper/PackageBuilder.cpp:43-48`](https://github.com/Eukaryot/sonic3air/blob/b0063dfb4b3e69d710e131ab83507cdf8c41910f/Oxygen/sonic3air/source/sonic3air/helper/PackageBuilder.cpp#L43-L48)

## 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.
