Mafia-RE
Byte-exact decompilation of Mafia: The City of Lost Heaven v1.2, using the original compilers and reccmp to score accuracy per binary.
Matching decomp Not stated wip3D Pinball Space Cadet Disassembly · 3S Decomp · Abyss Engine
About Mafia-RE
Mafia-RE is a byte-exact decompilation of the 2002 PC game Mafia: The City of Lost Heaven. The aim is C++ source that, when built with the same Microsoft compilers and linkers the original developers used, produces files identical to the shipped game. The repository bundles those old toolchains, mainly Visual C++ 6.0 plus the DirectX 8 SDKs, and uses reccmp, a comparison tool from the Lego Island decompilation community, to score how closely each rebuilt function matches the original. Progress is reported per binary and per function.
The main target is version 1.2, the last official patch and the version sold on Steam. Patch 1.1, version 1.0 and Steam's 2010 rebuild of the setup program are covered where they differ, with the differences switched by build flags. You do not need the game to build the source, but you need your own copy of version 1.2 to compare the result with the original. A modern Visual Studio build is also possible; it runs but does not match byte for byte.
The game is split across several files, and they are at different stages. The project reports the data and joystick libraries and the setup program as done and identical to the originals, and every source file of the LS3DF engine library as written, with most functions compiling to the original instructions. The main Game.exe is about half written; the rebuilt executable reaches the main menu, plays the intro cutscene and enters the game. Because no unprotected copy of the 1.2 executable survives, it is compared against a copy reconstructed from the retail files. There are no releases, since the output is source code rather than a ready-made port, and no open issues. It is the only Mafia project on this site.
Facts
- Original
- Mafia: The City of Lost Heaven (2002)
- Platform
- Windows
- Method
- Matching decomp
- Provenance
- Not stated what this means
- Status
- wip
- Licence
- none
- Team
- Marvisak
- Started
- 2025-02
- Runs on
- Windows
- Needs the original
- Yes: you supply your own legally obtained copy
How to get it legally
This project ships code only. Build or download it from the official repository, then supply data from a copy of Mafia: The City of Lost Heaven you own. Recomp never links to ROMs, discs or game data.
This project was decompiled by Marvisak. Facts last checked 2026-10-17. Suggest a correction
Sources
Related
All games →3D Pinball Space Cadet Disassembly
3D Pinball for Windows: Space Cadet
Archived disassembly of the Windows pinball game; the author points to the SpaceCadetPinball project for a working version.
3S Decomp
Street Fighter III: 3rd Strike (PS2)
Decompilation of Street Fighter III: 3rd Strike for PlayStation 2, aiming to recreate source that could allow ports.
Abyss Engine
Diablo II
Clean-room reimplementation of the Diablo II engine written in C, aiming to recreate the original game. Last updated April 2024.
Advance Wars 2: Black Hole Rising decompilation
Advance Wars 2: Black Hole Rising
Work-in-progress matching decompilation of Advance Wars 2: Black Hole Rising for GBA; builds still need the original as a base.
Advance Wars decompilation
Advance Wars
Archived decompilation of the US Advance Wars for GBA that builds a byte-identical copy of the original.
AeroGauge decompilation
AeroGauge
Early-stage decompilation of the US version of the N64 racing game AeroGauge that builds a ROM from source.