awesomerea.
Cricket 07 Browser coverGenerated cover

Static recompilation to WebAssembly

Cricket 07 Browser: 2006 PC Cricket 07 statically recompiled to WebAssembly

Category: Games & game engines · Type: Reconstruction

Target: EA Sports Cricket 07 (2006, Windows) · C / WebAssembly / WebGPU

A static recompilation of EA Sports Cricket 07 (2006, Windows) so the game can run in a browser tab (WebAssembly / WebGPU) or as a native Mac app: Ghidra plus translator/x86toc.py translate the user-supplied executable from x86 to C (about 31,548 functions), then a host layer rebuilds Direct3D 8 on WebGPU and maps sound, input, files and threads onto the browser. It is not a general PC emulator. Game files and game code are not redistributed; you bring your own copy.

Relationship
Independent reimplementation

Evidence scope
Upstream README describes translating the game's executable from x86 machine code to C with Ghidra and translator/x86toc.py (31,548 functions, about 1.3 million instructions), then compiling that C to WebAssembly with Emscripten or to a native Mac app with clang. The repo has no game files and no game code. Translation is checked with tests/difftest.py against a CPU emulator. The retail SafeDisc-wrapped Cricket07.exe cannot be translated; the build checks the executable against profiles/cricket07.patches.json. No REA involvement is claimed.

Know before you try
A playable build needs your own unprotected Cricket 07 executable that matches the project's patch profile; the SafeDisc-wrapped retail executable is unsupported. The documented build host is macOS on Apple Silicon with Ghidra 12, Python, and Emscripten. Playback needs a WebGPU browser (current Chrome or Edge, or Safari on macOS 26 / iOS 26). WebAssembly memory is documented as squeezed into a 1.25 GB window; phones have additional lazy-archive and GC workarounds. Online matches are lockstep and stay 4:3 so every player runs the same simulation. Author-measured function counts and compatibility were not personally verified. We have not independently tested it.

Status
Active; tip pushed 2026-11-08; no GitHub releases

License
MIT
MIT covers this project. Original game files and the game executable are not included. The README notes that a built WebAssembly binary is still derived from the game's code and should be shared only with people who own the game, not published publicly. Cricket 07 and EA Sports are trademarks of Electronic Arts; the README states EA is not involved with this project.

Source checked