Sonic_R EGLSDL2 Mesa for AmigAOS4


# Sonic R for AmigaOS4 by HunoPPC 2026
Here you will find a reimplementation of *Sonic R* (the 1998 Sega PC release),
decompiled from the original executable and rebuilt as modern, portable C.
It runs natively on **Windows, macOS, and Linux** (via SDL2) and on the **Sega Dreamcast**
(via KallistiOS), sharing one game-logic codebase across all targets.
## AI Disclosure
This project is the product of several months of reverse-engineering and
x86-to-C translation done with the use of Ghidra and Claude Code
(using Opus 4.6, Opus 4.8 and Fable 5).
This has been extensively tested and validated against live WinDbg sessions running 1998 SONICR.EXE,
along with playtesting by many *detail-oriented* Sonic R fans (special thanks to Mittens, Tongara and
Neo.charmy).
We ran out of identifiable differences in single-player gameplay behavior that could be attributed to
anything other than switching from 80-bit x87 floating point to IEEE floating point math (or using modified
game data).
If this use of AI is in conflict with your personal beliefs or values, please leave this page now. Thanks.
## Play
> **You supply your own game data.** This port is **only the game engine** â it
> does **not** include Sonic R's assets. You must own a copy of the game.
- **Windows, macOS & Linux** â **[docs/desktop.md](docs/desktop.md)**
- **Sega Dreamcast** â **[docs/dreamcast.md](docs/dreamcast.md)**
Each guide is self-contained: how to get or build it, the game data you supply,
controls, network play, saves, and troubleshooting for that platform.
## Legal & credits
I personally report every for-sale listing of my ports that are brought to my attention. I will get your 15
year old 100% feedback eBay account terminated.
Sonic R and its characters, trademarks, and game assets are the property of
Sega. This is a from-scratch reimplementation of the game engine â it contains
no original Sega code â and you must own a copy of Sonic R to supply the track,
model, texture, and music data needed to play.
A few small supporting assets are bundled under `DATA/` for convenience: the
custom network player platform icons (`NET01.RAW`) and the pre-encoded sound fx.
Everything else must come from your own copy of the game.
This is a non-commercial preservation project and is not affiliated with or
endorsed by Sega.
If you sell this, I hope all the bad things in life happen to you and only to you.
version 1.0:
* Fixed exit on menu now.
* Fixed audio flac
* Compiled with new fix SDL2EGL_mesa library
* New script for unlock all objects on game
version 1.1 (thanks to Rene Engel (Maijestro) for motivate this options):
* added new options on engine:
Usage: %s [options] [data_dir]
--width N window width (default %d)
--height N window height (default %d)
--resolution WxH width and height at once, e.g., 1280x960
--filter MODE texture filtering:\n"
nearest sharp pixels, original rendering (default)
bilinear smooth, with atlases (characters/HUD) kept in 'nearest' mode
all smooth everywhere, including atlases
--fullscreen full screen (desktop resolution)
--host IP --port N --username NAME --unlock
In-game: F9 changes the filter, F10 changes the resolution (in windowed mode).
Resolution and filter settings are saved to SONICR.INF upon exit; command-line
options take precedence over the saved values
Version 1.2:
* Fixed endianess on .adp and .adx files
All my Gold/Silver and Hardware supporters (Thank you very much for your big support and big Donations) :
* Gardian of blind
* AmicaIT
* Stellerex
* cloverskull
* Dwayne Jarvis
* Mr_byte
* George Sokianos
* Thomas Kölsch
* Rene Engel (Maijestro)
* Remi
* Neuron55
Thanks go to:
My children "Matthis" and "Sorhenn" for allowing me some time to develop
Hyperion Entertainment For the development of Amiga OS 4.0 and 4.1
A-EON for all new 3D drivers (Hans for NOVA and Daniel for Ogles2)
Relec for my X1000 NEMO and AMEDIA (AAA) for my X5000/40 my A1222 Plus (TABOR)
George Sakianos for my new cool web site and SDK clib4 package
All my betatesters
And of course the whole AMIGA community and my generous donators.
Bugreports for AmigaOS 4x at
NOUVEL (HunoPPC) Hugues (your humble servant)
hunoppc(AT)gmail.com
http://hunoppc.amiga-projects.net/
Site Dev AmigaOS4: http://hunoppc.a1k.org
My ko-fi site: https://ko-fi.com/hunoppc
"Don't forget to make a small gesture, make a donation for the hours and work done if you still want to have free ports, thank you in advance and have fun."
Donate to hunoppc(AT)gmail.com or if you want to treat me to a beer or parts for my MAZDA RX7 /_\ (rotary experience) :-)
Amiga French Team 2026
