Battlefield 2: Modern Combat gets a Windows source kit for a native PC port
An experimental v0.1.0 source kit builds a native Windows port of the Xbox 360 game from your own USA disc. No game files included.

A GitHub project called bf2-modern-combat-pc put out v0.1.0 on October 18. It is a source kit for a native Windows PC port of Battlefield 2: Modern Combat, an Xbox 360 game. Nothing playable ships in the repo. You bring your own Xbox 360 USA disc, and the kit translates the game’s PowerPC code on your machine using the ReXGlue SDK, a static recompilation toolkit.
The approach is the interesting part. Xenia, the Xbox 360 emulator, translates the code at run time and emulates the GPU and audio hardware. This port compiles the game’s code ahead of time and swaps the graphics and audio paths for native code. Direct3D calls go straight to a Direct3D 11 renderer, and Xenos shader microcode gets translated to HLSL. Audio uses FFmpeg’s XMA decoder and SDL3 for output.
The author tested it on Windows 11 x64 through the first single-player mission, ‘In and Out’, at around 40 fps. Audio has not been checked by ear yet. The known issues list includes shimmering ground textures, translucent particle streaks, a first mission load of 1 to 2 minutes while shaders compile, and no multiplayer.
My take: this only works for one game and one revision, and the author says so in the README. I find that trade-off more reasonable than I expected. Emulators remain the more general and better-tested option. A per-game recomp covers one game and one revision. The repo ships no EA assets, so anyone using it needs a disc they already own.
How to try it:
- Install Python 3.10+, Visual Studio 2022 Build Tools with the C++ workload, LLVM/Clang 20 or newer, CMake 3.25+ and Ninja.
- Extract your disc:
python tools/extract_iso.py "Battlefield 2 - Modern Combat (USA).iso" --output game_files - Validate it:
python tools/validate_game.py game_files. The default.xex SHA-256 must matcha2e791b578ef15420f3737b48999ca4285fdf85c85cb6732aac0e465ed9d5484. - Run
tools/build_local.py. It downloads the pinned ReXGlue SDK, translates your XEX and builds the port.
Do not upload the ISO, the extracted files or the built executable. Windows x64 only for now.
