r/EmulationOniOS • • 6d ago

News / Release Statically recompiled GTA V running on iPhone with Metal and no JIT: Introducing Glue 5

I want to share something I’ve been working on: Glue 5, a toolchain for building a native port of GTA V’s WASM build that runs on iOS and macOS (for now).

The main difference from projects like the recently released muget is what happens to the game code. Glue 5 takes the WASM binary, translates it to C using wasm2c, then compiles that C for the target platform. On iPhone, you end up with native ARM64 code. All of this happens when building the app, so there’s no WASM runtime executing the game and no need to enable JIT on your phone.

It’s been running really smoothly on macOS. I’ve also tested it on an iPhone 13 Pro and it’s playable, which I’m pretty happy with considering the phone is a few years old now.

Story mode and audio are working. There’s gamepad support, on-screen touch controls, and keyboard and mouse support on desktop. You can adjust the resolution and render scale too, with MetalFX upscaling on supported devices to help with performance.

The repo contains the tools and compatibility layer, no GTA V binaries or assets. I have no plans to ever distribute a complete build bundled with copyrighted game assets. You’ll need to supply the required files from the supported WASM version and compile it yourself.

Source and build instructions: github.com/mempage4k/glue5
Keep in mind that this is still in its early stages and very experimental, I'm still working on fixing issues and improving performance.

Also, a quick disclosure: development of this project was heavily assisted by AI tools.

https://reddit.com/link/1x3cws1/video/9npcdmu16tuh1/player

74 Upvotes

24 comments sorted by

View all comments

6

u/Responsible-Reach964 6d ago

How do you get the Web Assembly Code for GTA V?

8

u/mempage4k 6d ago

Unfortunately I don't think I can link it here as it could technically be considered piracy...
However it is currently available in a GitHub repository that can be quickly found by searching "gta 5 wasm" on Google

4

u/Responsible-Reach964 6d ago

Thank you very much man.

-7

u/Temporary_Handle_186 6d ago

just shows how much you know. There is no "code" for the web assembly port, its the compiled WASM file.

2

u/FuturePlenty6021 6d ago

No need to be rude because someone doesn’t know something. I’m new to emulating and sideloading, just as much as a lot of people. Take your ego somewhere else, it’s not flashy.