reSOT v0.1.0
Prince of Persia: The Sands of Time (Xbox), statically recompiled for Windows and Android
This is the first public release of reSOT. It is a preview: both games boot and play,
but many parts are still being checked. Read the status section below before you play.
⚠️ reSOT does not include the game. You need your own disc of
Prince of Persia: The Sands of Time for the original Xbox (the E3 2003 demo or
the NTSC retail game). Game data, executables and extracted assets are not
distributed.
What it is
reSOT takes the original Xbox default.xbe, lifts every function to C and builds
native programs from it. The game's own code runs (the Jade engine, the BigFile
loader, the AI, the Bink decoder and its statically linked Xbox Direct3D) on top of
a runtime that replaces the console: kernel, NV2A GPU on Direct3D 11 or native
Vulkan/D3D12, audio, USB controllers, video overlay.
Two Xbox builds are supported, each identified by the SHA-256 of its default.xbe:
| Target | Build | SHA-256 of default.xbe
|
|---|---|---|
xbox-demo
| E3 2003 demo, built 2003-07-18 | 79C1A47828630AB0D4E5DD19B1FD036FFA58EA2C0FE729B0D3456DAC3E79D4F5
|
xbox-retail
| NTSC retail (title 0x5553001D), built 2003-10-20
| 753C58B191279BF4D1A8B28A936DF36AA222ED566487AB1FBDFCD090E91EE379
|
Other revisions are refused, because every address in the project belongs to these files.
Downloads
| File | Platform |
|---|---|
sot-xbox-demo.exe
| Windows 10/11 x64, the demo |
sot-xbox-retail.exe
| Windows 10/11 x64, the retail game |
reSOT-android.apk
| Android 10+ arm64 with Vulkan, one app for both games |
Getting started
Windows
- Put
sot-xbox-demo.exeand/orsot-xbox-retail.exein a folder. - Start one of them. The launcher looks for installed games. If there are none,
it asks for your Xbox disc image (.iso/.xiso) and extracts it beside the
executable. - Choose Start Demo or Start Game. With both executables in the same folder,
either one can start either game.
Android
- Install
reSOT-android.apk. - Open it and choose Install from ISO… to pick your Xbox disc image. The games
are installed intoAndroid/data/com.fulger.resot/files/xbox-demoandxbox-retail. - Choose Start Demo or Start Game. Without a controller, touch controls are
drawn over the game.
Controls
- Keyboard, XInput controllers (Windows) and SDL3 gamepads (Android).
- Space / A skips videos.
- F5: FPS panel. F6: diagnostics, copy with Ctrl+Shift+C.
- F7: reSOT Options (graphics and controls), also available in the game's main menu.
Highlights
- Both games, from your own disc, in native executables: no emulator.
- Launcher with ISO installation on Windows and Android. It recognises the demo
and the retail game by theirdefault.xbe. - 16:9 widescreen (Hor+) by default, with view culling widened to match.
- High frame rates on Windows: users report 120+ FPS in both games.
- Renderers: Direct3D 11 by default on Windows, optional native D3D12 and Vulkan
(SDL GPU). On Android, native Vulkan with GPU vertex programs. - Options panel for graphics and controls, with saved keyboard mappings.
- The lifted C source is published, so functions can be replaced with hand-written
code one at a time.
Status: please read
A green status below means "seen working in our runs". It does not mean "matches
the console". Nothing has been compared against real hardware yet.
Windows: demo
- Movies, menus, pause and the level sections tested so far run.
- A person played it to the third level without a freeze.
- The user confirmed that audio works.
Windows: retail
- Substantial gameplay through the first areas has been reported without crashes.
- The slow-motion timing bug is fixed.
- The user reports the save crash resolved.
Known issues and gaps
- The demo shows angle-dependent object flickering in its first level. A
setting that is now the default made it go away for the user; broader checks
are pending. - A demo crash at the garden lever and a retail crash at the second ladder were
reported; neither has been confirmed fixed since. - Full save/load and memory-unit validation is incomplete on both platforms.
- At 16:9, some retail dialog text is wider than its box.
- No stencil support. Other rendering defects may appear.
Android is experimental
- The demo menu runs at about 40–57 FPS (one measurement reached about 63 FPS).
First playable scenes drop to 34–53 FPS. - The retail title screen measures about 29–31 FPS at 480p and 36–38 FPS at 360p
on a Snapdragon 8s Gen 3 phone. - Sustained 60 FPS gameplay is not reached yet.
- Save/load on device is not fully verified.
Every run and measurement behind these statements is recorded in
docs/VALIDATION.md.
Building from source
Lifting needs your own default.xbe in Assets/<target>/. Then:
.\tools\recomp.ps1 -Target xbox-demo # analyse, lift and build
.\tools\build-android.ps1 # the Android APK