Mafia: The City of Lost Heaven Runs on Handhelds via Static Recompilation
Mafia runs natively on ARM64 Linux handhelds like the Anbernic RG40XX H using static recompilation and PortMaster.

Classic open-world shooter Mafia: The City of Lost Heaven (Illusion Softworks, 2002) now runs natively on ARM64 Linux handhelds via PortMaster. Developer rzrbld released The Familia, a beta ARM64 Linux port that uses static recompilation, SDL2, and OpenGL ES 3.2.
Tested on the Anbernic RG40XX-H with muOS, the port translates the game’s x86 binaries (Game.exe and the LS3D engine DLLs) to ARM64. Direct3D 8 runs on OpenGL ES 3.2, while DirectSound and DirectInput run on SDL2. Other PortMaster devices with 64-bit firmware and OpenGL ES 3.2 may work, but they are untested. Cutscenes run at 57-60 fps, daytime driving sits around 24-30 fps, and heavy night missions run at 26-28 fps, with short dips into the low 20s. A full playthrough has not been verified yet.
How to try it
- Download
the_familia.zipfrom The Familia GitHub repository. MoveThe Familia.shinto your device’s Ports folder and thethe_familiafolder intoports. - Place your own game files into
ports/the_familia/source/: the three Mafia CDs as.bin+.cueor.isoimages, the official English patchmafia_patch_1.2_eng.exe, and an unprotected 1.2Game.exe(since retail binaries use SafeDisc protection). - Launch The Familia from your device’s Ports menu. The initial boot imports your files over several minutes.