Prototype Gets a Native Apple Silicon Static Recompilation Port
Prototype (2009) is now playable natively on Apple Silicon Macs via a new static recompilation project using Metal.
A new project brings the 2009 open-world action game Prototype to macOS on Apple Silicon as native ARM64 code. The repository https://github.com/Alyx-ML/Prototype-MacOS-Metal uses static recompilation to convert the Windows game files without relying on Rosetta, Wine, or an emulator.
The project uses a Windows API runtime written in C and Objective-C to handle kernel32, user32, Direct3D 9 translated to Metal, XAudio2 on Core Audio, and Bink video decoded through FFmpeg. Rendering runs directly through Metal.
How to Try It
You need an Apple Silicon Mac, Xcode or Command Line Tools, Python 3, and Homebrew packages llvm, lld, and ldc. You also need a legal copy of the Windows Steam version of the game using two specific files: prototypef.exe and prototypeenginef.dll.
- Install the required Homebrew tools with
brew install llvm lld ldc. - Build the recompiler toolchain using
sh tools/build_toolchain.sh. - Build the FFmpeg libraries using
sh tools/build_ffmpeg_lgpl.sh ~/Downloads/ffmpeg-9.0.2.tar.xz. - Place
prototypef.exeintowork/launcher/andprototypeenginef.dllintowork/engine/. - Run the translation scripts
sh tools/translate_launcher.shandsh tools/translate_engine.shto generate the ARM64 binaries.
The initial translation step takes several minutes and requires 8 GB of free disk space for temporary files. Subsequent launches run directly from the generated native code.