Fork from https://github.com/hedge-dev/UnleashedRecomp
This repository is a recompilation project of the Xbox 360 version of Sonic Unleashed. By translating original PowerPC binaries into native machine code (ARM64 / x86-64). Fork includes Android support with Vulkan 1.3, Oboe High-Performance Audio, and NDK 29 optimizations.
Important
Game assets are NOT included. You must provide your own legally acquired Xbox 360 copy of Sonic Unleashed and its updates.
This fork has been optimized and modernized, still WIP so expect build to break.
- Advanced Architecture: Native optimization for ARMv8.2-A (including Crypto, CRC, DotProd, and FP16 instructions) on Android.
- Ultra-Aggressive Compilation: Utilizes Full LTO (Link Time Optimization), O3 optimization levels, and Fast Math.
- Parallel Execution Engine: Powered by Intel TBB and C++20 parallel algorithms to accelerate asset loading, hashing, and GPU pipeline pre-compilation.
- Background Pipeline Pre-compilation: Background compilation of graphics pipelines (MSAA, Blur, etc.) .
- Zero-Allocation I/O: High-performance STFS and SVOD parsing with zero-allocation string handling and memory-mapped I/O.
- Vulkan 1.3: Utilizes the latest Vulkan standards for rendering efficiency and modern GPU features.
- Oboe High-Performance Audio: Integrated Google's Oboe library for the lowest possible audio latency using AAudio.
- Sustained Performance Mode: Native Android API integration to lock CPU/GPU clocks and prevent thermal throttling.
- Enhanced HID & Input: Refined controller handling with dynamic button prompt switching (Xbox/PS) and optimized multi-touch overlay.
- Cross-Platform Mastery: Full native support for Windows and Linux (including Steam Deck).
- Visual Fidelity: Native support for Resolution Scaling, Ultrawide Aspect Ratio patches, and high-fidelity shadow resolution (up to 8K).
- Modding Support: Seamless integration with the Hedge Mod Manager ecosystem.
| Requirement | Android | Windows / Linux |
|---|---|---|
| Architecture | ARMv8.2-A 64-bit REQUIRED | x86-64 (Amd64) |
| OS Version | Android 8.0+ (Targeting Android 15) | Win 10/11 / Ubuntu 24.04+ |
| Graphics API | Vulkan 1.3 REQUIRED | Vulkan 1.2+ |
| RAM | 4 GB (Strict Guest Allocation) | 8 GB+ Recommended |
| Storage | 10-15 GB (High-speed internal) | 10-15 GB |
The Release workflow builds the APK (and optionally packages game data) entirely in the cloud.
- Fork this repository.
- Go to the Actions tab โ Release workflow โ Run workflow.
- Choose Target OS (Android, Windows, or Linux).
- Provide your game data URLs:
- game_url (required): URL to your game disc (ISO, XEX, ZIP, 7Z, or RAR).
- update_url (optional): URL for the title update (default.xexp).
- dlc_url (optional): URL for shader.ar (shader data).
- Choose a delivery mode via the
embed_game_filescheckbox:
- Game data is compressed and baked directly into the APK.
- Result: One large APK file (~3-6 GB). Install and play โ no extra steps on device.
- Game data is packaged as a separate downloadable archive.
- Result: Two artifacts:
UnleashedRecomp-Android-APKโ small APK (~50 MB)UnleashedRecomp-GameDataโgame_data.tar.zstarchive (~3-5 GB compressed)
- Setup on device:
- Install the APK.
- Launch the app once (it creates the game directory).
- Download the
UnleashedRecomp-GameDataartifact from GitHub Actions and extract the zip. - Copy
game_data.tar.zstto the game directory on your device:/Android/data/com.hedge_dev.UnleashedRecomp/files/UnleashedRecomp/ - Launch the app โ it auto-detects the archive, extracts all game files, then deletes the archive to free space.
Tip
On Android, use a file manager that can access /Android/data/ (e.g., MT Manager, MiXplorer, or adb push).
| Tool | Android | Linux | Windows |
|---|---|---|---|
| CMake | 3.22+ | 3.22+ | 3.22+ |
| Git | โ | โ | โ |
| Ninja | โ | ninja-build |
via VS |
| C++ Compiler | NDK provides | gcc-13 / g++-13 |
Visual Studio 2022 + Clang-cl + LLVM 18+ |
| Java | JDK 17 | โ | โ |
| Android SDK | โ | โ | โ |
| Android NDK | 29.0.14206865 | โ | โ |
| p7zip | p7zip-full |
p7zip-full |
โ |
| TBB | โ | libtbb-dev |
โ |
| libcurl | โ | libcurl4-openssl-dev |
โ |
| patchelf | โ | patchelf |
โ |
| Vulkan SDK | โ | โ | โ |
# 1. Place your game assets in a `private/` folder at the repo root:
# private/default.xex (game executable)
# private/default.xexp (title update patch)
# private/shader.ar (shader archive)
# private/<any>.iso (game disc - extracted automatically)
# The build script handles all extraction and normalization automatically.
# 2. Install Linux build dependencies:
sudo apt-get install -y cmake build-essential ninja-build p7zip-full \
libtbb-dev libcurl4-openssl-dev patchelf
# 3. Set NDK path (REQUIRED: version 29.0.14206865)
export ANDROID_NDK_HOME=/path/to/android-sdk/ndk/29.0.14206865
# 4. Run the full build (builds host tools + applies patches + compiles APK)
chmod +x ./build_android.sh && ./build_android.sh
# The APK will be at: android/app/build/outputs/apk/debug/app-debug.apk# 1. Install dependencies
sudo apt-get install -y cmake build-essential ninja-build gcc-13 g++-13 \
libtbb-dev libcurl4-openssl-dev patchelf p7zip-full
# 2. Place game assets in private/ and build host tools
chmod +x ./build_tools.sh && ./build_tools.sh
# 3. Apply patches
chmod +x ./apply_patches.sh && ./apply_patches.sh
# 4. Build
mkdir -p build_linux && cd build_linux
cmake .. -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_TOOLCHAIN_FILE="../thirdparty/vcpkg/scripts/buildsystems/vcpkg.cmake" \
-DHOST_TOOLS_DIR="../build_tools/bin"
cmake --build . --config Release --parallel $(nproc)# Requires Visual Studio 2022 with Clang-cl and LLVM 18+
cmake --preset x64-Clang-Release
cmake --build out/build/x64-Clang-Release --config Release --parallelOn Android, game files are stored at:
/Android/data/com.hedge_dev.UnleashedRecomp/files/UnleashedRecomp/
The required directory structure under the game path:
UnleashedRecomp/
โโโ game/ # Base game files
โ โโโ default.xex # Original game executable
โ โโโ *.ar.00, *.ar.01... # Game archives (levels, models, textures)
โ โโโ *.arl # Archive lists
โ โโโ voices/ # Voice data
โโโ update/
โ โโโ default.xexp # Title update patch
โโโ patched/
โโโ default.xex # Patched executable (auto-generated at first launch)
Sonic Unleashed Recompiled is an unofficial fan-made project. It is not affiliated with, authorized, or endorsed by SEGAยฎ or Sonic Teamโข. This project is intended for educational purposes and requires legally owned game assets.
