# OpenSWE1R: porting Star Wars: Episode I Racer with runtime code replacement

> OpenSWE1R ports the Windows x86 release of Star Wars: Episode I Racer by patching replacement open-source code into the game at runtime. It combines x86 CPU emulation with implementations of the Windows functions the game uses. Unreplaced functions still execute from the original game binary, and game art comes from the user's copy.

- 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/OpenSWE1R/openswe1r>
- Primary source: <https://github.com/OpenSWE1R/openswe1r/blob/1fcb4a8e8b5e031f0dde38b340cfca1b07e9738e/README.md>
- Catalog page: <https://awesomerea.org/resources/openswe1r-case/>
- Record JSON: <https://awesomerea.org/resources/openswe1r-case/record.json>
- Chinese version: [简体中文](https://awesomerea.org/zh/resources/openswe1r-case/index.md)

## Requirements & limits

- **Prerequisites:** Requires the original Windows x86 game binary and its art assets.
- **Prerequisites:** Requires OpenGL 3.3 Core; building uses Git, CMake, a C11 toolchain, Unicorn Engine, SDL2, GLEW, and OpenAL.
- **Limits:** Not all original game functions have replacement implementations.
- **License:** Source is licensed under GPL-2.0 or later.

## Primary sources

1. <https://github.com/OpenSWE1R/openswe1r/blob/1fcb4a8e8b5e031f0dde38b340cfca1b07e9738e/README.md>

## More in Games

- [OpenSWOS: rebuilding Sensible World of Soccer in C](https://awesomerea.org/resources/openswos-case/index.md) · Case study
- [OpenTitus: porting the Titus the Fox and Moktar engine](https://awesomerea.org/resources/opentitus-case/index.md) · Case study
- [OpenVice: a C# port of Grand Theft Auto: Vice City](https://awesomerea.org/resources/openvice-case/index.md) · Case study
- [Oracles NX: a Nintendo Switch port of the Oracle games](https://awesomerea.org/resources/oracles-nx-case/index.md) · Case study
- [Ottsel: an ARM64 port of Jak and Daxter](https://awesomerea.org/resources/ottsel-jak-port-case/index.md) · Case study
- [OutRunners: native ports built on an arcade game decompilation](https://awesomerea.org/resources/outrunners-port-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.
