# OpenLGR: rehosting Lego Racers with emulation and runtime patches

> OpenLGR rehosts the Windows release of Lego Racers using x86 CPU emulation and implementations of the Windows functions the game uses. It patches replacement open-source code into the game at runtime, while still running original code and loading original game assets.

- Type: Case study
- Targets: Game
- Category: Independent reconstruction cases
- Relationship: Independent reconstruction project
- Sources reviewed: 2026-11-06
- Added to the catalog: 2026-11-09
- Original resource: <https://github.com/james-knippes/openlgr>
- Primary source: <https://github.com/james-knippes/openlgr/blob/54cfe61309460e14afa9222c883df7baf253591c/README.md>
- Catalog page: <https://awesomerea.org/resources/openlgr-lego-racers-case/>
- Record JSON: <https://awesomerea.org/resources/openlgr-lego-racers-case/record.json>
- Chinese version: [简体中文](https://awesomerea.org/zh/resources/openlgr-lego-racers-case/index.md)

## Requirements & limits

- **Prerequisites:** Requires the original x86 Windows game binary and data.
- **Prerequisites:** Building requires OpenGL 3.3 Core, CMake, a C11 toolchain, Unicorn, SDL2, GLEW and OpenAL.
- **Limits:** Some game functions still rely on original code.
- **License:** GPL-2.0 license.

## Primary sources

1. <https://github.com/james-knippes/openlgr/blob/54cfe61309460e14afa9222c883df7baf253591c/README.md>
2. <https://github.com/james-knippes/openlgr/blob/54cfe61309460e14afa9222c883df7baf253591c/CMakeLists.txt>

## More in Games

- [OpenMC2: incrementally rewriting Midnight Club 2](https://awesomerea.org/resources/openmc2-case/index.md) · Case study
- [OpenMM1: incrementally rewriting Midtown Madness 1](https://awesomerea.org/resources/openmm1-case/index.md) · Case study
- [OpenPayload: reimplementing the Mario Kart Wii Wiimmfi payload](https://awesomerea.org/resources/openpayload/index.md) · Case study
- [OpenPigeon: reconstructing GamePigeon iMessage game messages](https://awesomerea.org/resources/openpigeon-case/index.md) · Case study
- [OpenRSC: reconstructing RuneScape Classic servers](https://awesomerea.org/resources/openrsc-case/index.md) · Case study
- [ORPHEUS: reconstructing an Overwatch 1.74 server](https://awesomerea.org/resources/orpheus-overwatch-server-case/index.md) · Case study

## About this entry

The description was reviewed against primary sources.
Original editorial content: MIT. Linked projects, papers and assets retain their own rights and licenses.
