LMA Manager 2007 (Xbox 360) — Static Recompilation

LMA Manager 2007 (Xbox 360) — Static Recompilation is a native PC and Mac port of LMA Manager 2007 that allows modding of the game's database and rules.

README

LMA Manager 2007 — Static Recompilation

A native PC and Mac port of LMA Manager 2007 (Xbox 360), built by static recompilation: the game's PowerPC code is translated ahead of time into Rust, and the Xbox around it (kernel, threads, GPU, audio) is replaced with native code. No emulator runs at play time.

The goal is the whole game as readable, moddable native code, playable at 60 fps on Windows, macOS (Apple Silicon and Intel) and Linux, from your own copy of the game.

Status

  • The whole game recompiles (about 23,000 functions, 99 % native) and plays: career mode, matches in 3D, saves and loads, sound.
  • Rendering runs on the GPU through wgpu (Metal, Vulkan, DirectX 12).
  • Modding: the game's database (players, clubs, squads, names, badges) and 50+ of its rules (wages, transfers, prize money, player development, substitutions) can be changed by name. See MODS.md.
  • No game code or files in any download: the game is built from your own disc on your machine.

See lma-rs/PORT_PLAN.md for the architecture and docs/NATIVE_GAME.md for the plan towards fully readable code.

Play on a Mac (no commands)

  1. Download lma-<version>-mac-arm64-app.zip from the latest release (Apple Silicon, macOS 12 or later), unzip it, drag LMA.app to Applications and open it. If macOS says it can't check the app: System Settings > Privacy & Security > Open Anyway.
  2. Press Enter (or click) and choose your LMA Manager 2007 (Xbox 360) disc image (.iso), or drop it onto the window.
  3. Wait while it sets itself up, with a progress bar per step: it copies the game files from your disc, downloads the Rust compiler once (into the app's own folder), recompiles the game's code and builds it for your Mac (about 15-30 minutes, internet needed once). If macOS asks to install the "command line developer tools", press Install, then Enter in the app.
  4. The game starts; from then on LMA.app opens straight into it.

A Windows download is planned; on Windows and Linux build from source for now (below).

Building

You need your own legally obtained LMA Manager 2007 (Xbox 360) disc image, Rust and Python 3. Then, from this folder:

python3 tools/build_from_disc.py <your LMA Manager 2007 .iso>

It extracts the disc, recompiles the game's code from its default.xex, builds the app and points it at the game files, all on your machine. The first build takes about 10-30 minutes. Then start lma-rs/target/release/lma-app (lma-app.exe on Windows). An already extracted copy works too: pass its folder instead of the .iso.

By hand, the same steps are:

python3 tools/xiso.py <your.iso> extract <dir>
cd lma-rs
cargo build --release -p recomp
target/release/lma-recomp <dir>/default.xex all crates/game-blocks 999999 32
cargo build --release -p lma-cli -p lma-app

The app finds the game files through game_dir in its config.toml (~/Library/Application Support/lma-rs/ on macOS, %APPDATA%\lma-rs\ on Windows, ~/.config/lma-rs/ elsewhere).

The recompiled code (crates/game-blocks/parts/) and the extracted files are generated from your copy of the game: never share or commit them.

Layout

cratejob
xexXEX2 loader: decryption, decompression, sections, imports
ppcXenon (PowerPC) decoder
recompPowerPC → Rust translator
guestCPU state, guest memory, the helpers recompiled code calls
runtimekernel and XAM in native code, threads, GPU, audio, mods
lma-datathe game's database format (players, clubs, squads, names)
lma-importbuilds season mods from external squad data
lma-cliheadless runner and tools
lma-appthe game window, launcher and settings (Bevy)

Legal

See LEGAL.md for the full notice. In short:

This project contains no game code or assets. You need your own legally obtained copy of LMA Manager 2007 (Xbox 360); the game's code is recompiled locally from your own files. Not affiliated with or endorsed by Codemasters. LMA Manager is a trademark of its respective owner.

How it's built

Developed with a team of AI coding agents (Claude Code) across Mac and Windows machines, coordinated through GitHub issues and pull requests. The maintainer sets the architecture, priorities and milestones, and reviews and merges every change.

License

The code in this repository is dual-licensed under MIT or Apache-2.0, at your option. The licence covers this project's own code only: LMA Manager 2007 itself, its code and its assets remain the property of their owners (see LEGAL.md).