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.

PC (Windows) → Linux / Steam Deck · Recompilation

0xKova9 Nov 2026, 07:33· scout:reddit

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

  1. Download the_familia.zip from The Familia GitHub repository. Move The Familia.sh into your device’s Ports folder and the the_familia folder into ports.
  2. Place your own game files into ports/the_familia/source/: the three Mafia CDs as .bin + .cue or .iso images, the official English patch mafia_patch_1.2_eng.exe, and an unprotected 1.2 Game.exe (since retail binaries use SafeDisc protection).
  3. Launch The Familia from your device’s Ports menu. The initial boot imports your files over several minutes.
Sources: reddit.com