Recompiled Code Inside Azahar
MH4UltimateDC is a project to decompile Monster Hunter 4 Ultimate, with a native PC port as the long-term goal. Right now its static recompiler translates the whole game, about 40,000 functions, into C. You generate that code on your own machine from your own copy.
So how does it run? The recompiled code takes the place of the CPU inside Azahar’s 3DS core. Azahar still handles the 3DS system services, GPU, audio and networking. That makes this a hybrid: the game’s code is native, but the rest of the console is still emulated. On Android it runs inside a build of Azahar’s Android app, and the developer marks that path as experimental.
What it adds on top of a plain emulator:
- 60 and 120 fps, with a fix for a loading bug that higher frame rates expose.
- True widescreen (16:9, 21:9 and wider) with the hunting HUD moved to the screen edges.
- A sharper picture, with no dither grid when upscaling and each screen filter switchable.
- Buttons for the kick, the target camera and skipping the post-quest screen, which needed the touch screen on a 3DS.
- Two to four player hunts over Azahar’s network rooms, plus a mod manager.
Setting It Up (PC Needed)
Nothing from Capcom or Nintendo is in the repo or the APK. You need your own decrypted game as a .3ds, .cci or .cxi and its update as a .cia. The US release uses update v1.3.0. The European game works too, with its v1.1.0 update, though it’s had less testing.
- On a PC with Python 3.10 or newer, clone the repo and run
tools/build_game.pywith your update.ciaand the--androidflag. It builds a code library (0004000000126300.sofor the US version). - Install
mh4u-port-android.apkfrom GitHub Releases. Open it and pick its user folder, like you would in Azahar. - Copy the
.sofile into that folder’srecomp/folder. - In the app, install your update
.ciaand add your game.
The log should say it’s running recompiled code. If the library is missing or was built with a different version of the tools, the game falls back to Azahar’s normal CPU emulation and tells you how to fix it. So rebuild the library whenever you update the APK.
Hardware
The Android build needs an arm64 device with Android 10 or newer. The developer doesn’t list tested phones for it, so a recent mid-range or better chip is a safe bet, especially if you want 60 fps or more.
Controls and Multiplayer
Controllers work, and the second screen’s touch panel becomes an overlay in a corner of the game. In quests it shows just the map, which you can move and resize. Local multiplayer runs over Azahar’s network rooms, and you can play with people on regular Azahar too. The project also runs its own lobby server, so public room lists work again.