Run Xbox 360 games on PC through Microsoft's own back-compat emulator (XEO3), including
games Microsoft never released for back-compat. It works for original Xbox games too:
the 360's own original-Xbox emulator (xefu) and its DLLs come with the same console folder,
and original Xbox games boot through it (docs/ORIGINAL_XBOX.md).
What you need, exactly. None of it is in this repository; it all has to be yours.
To run any game, all four of these:
you need what it gives the kit 1. Fuzion Frenzy, the PC back-compat package (Microsoft Store) the emulator: Emu.exeand the PC-side files2. Super Meat Boy, the Xbox One back-compat package the Xbox 360 system: kernel, xam, system DLLs, graphics layer 3. kernelx.dll, built from XWine1/SlimEralets the Xbox One DLLs load on Windows 4. the game disc, dumped to an ISO yourself its default.xex(recompiled by the kit) and its data (used as is)1-3 are set up once and serve every game; 4 is per game.
For the dashboard (optional), also:
you need what it gives the kit Castle Crashers, the Xbox One back-compat package (the older 2014 kind) its Flashfolder: the dashboard,dash.xex2.0.17003.0, and its boot filesan offline Xbox 360 profile the player the dashboard signs in a Games-on-Demand package of each disc (iso2god-rs) the game's entry in My Games Those are the exact packages everything here was built and tested with. Others of the same kind may work but haven't been tried. Plus free tools: Visual Studio 2022, Python 3, Git, WitherOrNot's clang build and xdvdfs (docs/SETUP.md). How the packages combine: docs/CONSOLE_FOLDER.md; the dashboard: docs/DASHBOARD.md.
What gets recompiled. A 360 game on disc is one program file, default.xex (the game's
code, Crackdown's is 14 MB), plus gigabytes of data: levels, textures, sound, video. Only
the program is recompiled. Its PowerPC code is translated to x86-64 and compiled into one
DLL. The data is never touched: the emulator reads it straight from your unpacked disc
folder, just as the 360 read it off the disc.
Why a DLL. XEO3 doesn't interpret PowerPC code. For every program it runs (the 360's
kernel and system software, and the game) it loads a DLL holding that program's code already
translated to PC code. Microsoft made those DLLs only for the games on its back-compat
list. This kit makes the game's one yourself: it recompiles the default.xex from a disc you
own into C++, compiles that into a DLL with the name the emulator looks for, and adds a small
hand-written runtime that fills the gaps (saves without a dashboard, sign-in, audio decoding,
graphics fixes, crash diagnostics). The 360's kernel and system software come, already
translated, from Microsoft's own back-compat files.
It is built on WitherOrNot's XenonRecomp-XEO3, the proof of concept that showed XEO3 can load a recompiled game, which itself is a fork of hedge-dev's XenonRecomp. This kit carries that fork much further: a recompiler that handles full retail games, a runtime proven on three of them, and scripts that turn the whole process into six commands.
| Game | State |
|---|---|
| Crackdown | Boots from the disc folder, campaign playable, sound (XMA) and saves work, ~21 fps. Open: the lower part of the 3D view is black (a tiling/resolve bug in the emulator's GPU path). Its full config ships in examples/crackdown. |
| Need for Speed: Most Wanted | Menus, garage and races. The graphics fixes in this runtime (predicated tiling, colour order, sky/bloom) were first made and confirmed here. |
| Fable II | Boots and renders, then freezes about 30 seconds in (a mutex the game never gets back). Open. |
Every game is different: expect each new title to need some of the debugging described in docs/TROUBLESHOOTING.md. The kit gives you the pipeline, the fixes found so far and the tools to find the next ones. It doesn't promise a playable result.
Bring your own (none of it is in this repository):
- the game: an Xbox 360 disc you own, as an ISO you dumped yourself
- a XEO3 console folder: Microsoft's emulator and the 360 system files it runs (kernel, xam, ...), assembled from back-compat packages you own. The kit was made with Fuzion Frenzy (PC package: the emulator) and Super Meat Boy (Xbox One package: the 360 system stack). See docs/CONSOLE_FOLDER.md.
Free tools (setup.ps1 checks for all of them):
- Windows 10/11 x64 with a CPU that has AVX
- Visual Studio 2022 or later (Community or Build Tools) with Desktop development with C++ and C++ CMake tools for Windows
- Python 3 and Git
- WitherOrNot's custom LLVM/clang build (the generated code needs the emulator's calling convention, which only that build has). See docs/SETUP.md.
- xdvdfs to unpack the disc image
git clone --recursive <this repository> xeo3-recomp-kit
cd xeo3-recomp-kit
powershell -ExecutionPolicy Bypass -File scripts\setup.ps1 # once
xdvdfs unpack "D:\isos\MyGame.iso" "D:\games\MyGame" # your disc
powershell -ExecutionPolicy Bypass -File scripts\new-game.ps1 -Name mygame -Xex "D:\games\MyGame\default.xex"
powershell -ExecutionPolicy Bypass -File scripts\recompile.ps1 -Game mygame
powershell -ExecutionPolicy Bypass -File scripts\build.ps1 -Game mygame
powershell -ExecutionPolicy Bypass -File scripts\install.ps1 -Game mygame -Console "D:\XeO3 Console"
powershell -ExecutionPolicy Bypass -File scripts\run.ps1 -Game mygame -Console "D:\XeO3 Console" -Disc "D:\games\MyGame"The full walkthrough, including the manual checks between those steps, is docs/TUTORIAL.md. Read it before your first game.
| SETUP.md | installing the toolchain |
| CONSOLE_FOLDER.md | building the folder the emulator runs from, and patching its GPU layer |
| TUTORIAL.md | a game, start to finish, with Crackdown's real numbers |
| RUNTIME.md | the hand-written runtime: saves, sign-in, audio, graphics fixes, the switch files |
| TROUBLESHOOTING.md | crashes, freezes, black screens, and how they were tracked down |
| HOW_IT_WORKS.md | XEO3 internals: DLL exports, naming, calling convention |
| ORIGINAL_XBOX.md | original Xbox games on the same emulator |
| DASHBOARD.md | the 360 dashboard: My Games, Play Disc and the Guide for your recompiled games |
| recompiler/README.md | the recompiler and what this fork adds |
recompiler/ XenonRecomp + XenonAnalyse (the fork), third-party libraries as submodules
runtime/ hand-written C++ compiled into every game DLL (see docs/RUNTIME.md)
scripts/ setup, new-game, recompile, build, install, run; recompile-dashboard,
install-dashboard, add-game-to-my-games
tools/ Python helpers the scripts use, and debugging tools
examples/ crackdown/: a complete, working config
dashboard/ the 360 dashboard's config, its runtime and the title-switch relay
games/ your games (created by new-game.ps1; ignored by git)
docs/
The same emulator also runs original Xbox games, through the 360's own original-Xbox emulator
(xefu.xex) and Microsoft's xefu DLLs, all from back-compat packages. That works for
Microsoft's own packages. Running an original Xbox game they never shipped is untested.
docs/ORIGINAL_XBOX.md has what is known.
The kit also recompiles the Xbox 360 NXE dashboard from your own copy of dash.xex.
In a console folder it boots like a 360: your profile signs in, your recompiled games are
listed under My Games and launch from there or from Play Disc, the Guide button
works, and quitting a game brings the dashboard back. It runs offline (no Xbox Live).
docs/DASHBOARD.md has what you need to supply, the steps, and what has
and hasn't been tested yet.
This repository contains only original code and documentation, plus open-source dependencies under their own licenses. It contains no Microsoft software, no game code and no game data, and it never will: pull requests adding any of those will be closed. You need to own the games and the back-compat packages you use with it. Xbox, Xbox 360 and related names are trademarks of Microsoft; this project is not affiliated with or endorsed by Microsoft or by any game publisher.
- hedge-dev/XenonRecomp, the recompiler this all stands on (MIT)
- WitherOrNot: the XEO3 research, the XEO3 fork of XenonRecomp and the custom clang (MIT)
- XWine1/SlimEra:
kernelx.dll, used by the console folder - antangelo/xdvdfs: disc unpacking
Code in this repository is released under the MIT license (LICENSE).