A game-specific desktop build based on Zakuro, a high-level-emulation Nintendo 3DS runtime, and 3dsrecomp, its ahead-of-time ARM code recompiler.
This fork is deliberately limited to Mario Kart 7 for Nintendo 3DS. Other games are hidden from the library and cannot be launched through the application.
| Region | Nintendo 3DS title ID |
|---|---|
| Japan | 0004000000030600 |
| Europe | 0004000000030700 |
| USA | 0004000000030800 |
| Korea | 0004000000030A00 |
| Taiwan | 000400000008B400 |
| China | 000400000008B500 |
The application expects a legally obtained, decrypted dump of the game. It does not include the ROM, game code, textures, music, or other game assets.
-
Adds an experimental Pretendo network-provider setting, guest IPv4 TCP/UDP and DNS, an asynchronous HTTP client for NASC-style requests, guest AC connection events, and local FRD login events. This is networking groundwork only: HTTPS uses the host's
curland trust store, and NASC/NEX authentication plus actual matchmaking/racing have not yet been validated. -
To use Pretendo routing, select Pretendo (experimental routing) in Settings or RecompLauncher. With the network provider set to Off, FRD will not send NASC requests, account credentials, or STUN probes to Pretendo or external NAT servers. Import your own decrypted Friends system-save folder so the runtime can read
user/nand/system-save/0000000000010032/2/account. RecompLauncher exposes an Open Friends account data action for the parent folder. The account record contains the FRD PrincipalID, local friend code, NEX password and UID-HMAC; the runtime does not invent an identity. -
UID-HMAC repair is opt-in and off by default. Enable Repair UID-HMAC automatically only when you want the imported PrincipalID and NEX password sent to
https://api.pretendo.cc/v1/repair-uidhmacover HTTPS. The returned eight-character HMAC is written at the documented account-record offset; the original is preserved asaccount.pretendo-backup. The password is sent to the HTTPS client through stdin and is never written into logs. You can leave the option off to use the HMAC already in your imported record. -
For the FRD/NASC login transaction, also place your own
LocalFriendCodeSeed_B(exactly 0x110 bytes),ctr-common-1-cert.pem, andctr-common-1-key.peminsysdata/. Add asysdata/nasc.jsoncontaining your own MAC address, Wi-Fi BSSID, AP slot details, device name and serial number. A blank example is indocs/pretendo-nasc.example.json; fill it with your console's values rather than using sample addresses. Cartridge dumps additionally need the exact ROM ID in this file; digital CIA dumps do not. These identity files are private and are never included in the game download. -
Adds F4 toggleable fast-forward: switch between normal speed and uncapped emulation without holding Tab or a controller trigger; the existing hold-to-fast-forward controls remain available.
-
Adds configurable racing-wheel input for devices exposed by the system through Gilrs: bind steering, accelerator and brake independently (including across separate wheel/pedal devices), select pedal axis range, invert individual axes, and tune steering deadzone. Steering drives the circle pad; accelerator and brake map to A and B. Force feedback is not implemented, and device availability depends on OS/driver enumeration.
-
Applies a rescaled radial deadzone to controller sticks, filtering drift while preserving full travel.
-
Reduces controller polling overhead by sharing Pro Controller report snapshots instead of cloning their button vectors every frame.
-
Buffers input recordings and flushes periodically rather than synchronously flushing after every changed input.
-
Improves SDMC compatibility: reports the 1 GiB free-space stub, returns the same unknown-result sentinel for unsupported SDMC format information, propagates SD-root creation failures, and uses the measured SDMC read/open latency model.
-
Adds Auto / GPU / CPU Vulkan vertex-shading selection, including per-game overrides, for A/B testing geometry-heavy tracks. Auto retains the existing device heuristic.
-
Replaces the F3 FPS-only counter with a copyable performance HUD showing rolling average, p95 and worst frame time, emulation time, GPU-command host time, draw calls and vertices per frame.
- Adds timestamped backups of replaced save-state slots, automatically retaining the newest ten backups per slot.
- Adds one-click restoration of the newest backup; the current running state is backed up first, so restoration can be undone.
- Adds F6/F7 save-slot cycling, F5/F8 quick save/load, F2 mute toggle, and F3 FPS-counter toggle.
- Adds pause-menu shortcuts to browse save files and their recovery backups.
- Fixes strided GPU texture copies used by in-game display surfaces, resolving the corrupted/misaligned in-game displays seen in affected courses.
- Adds regression coverage for differing source/destination strides and contiguous-to-strided transfers.
-
Routes NCCH ExeFS requests for an installed update to that update's own
.codecontent, while NCCH Code continues to expose the runtime-mapped update and modded executable image. -
Returns decompressed executable bytes for NCCH Code archive requests, matching the image mapped into game memory and avoiding checksum mismatches on compressed
.codefiles. -
Disables speculative vertex-shading look-ahead by default on macOS, preventing stale prefetches when a draw reads vertex data produced by an earlier GPU draw. Set
ZAKURO_SHADE_AHEAD=1to opt back in; the Vulkan rasterizer remains enabled.
- Keeps encrypted or damaged Mario Kart 7 CIA dumps visible in the library with an explanatory warning instead of silently hiding them.
- Adds RecompLauncher setup and direct game launching on Windows, Linux and macOS, with the manifest shipped in every release package.
- Adds
--game <path>while keeping positional game paths, plus windowless--prepareand borderless--fullscreensupport. - Adds launcher-editable graphics, display, emulation and sound settings, with Big Picture mode starting fullscreen.
- Declares game save archives, extra data, system saves, save states, cheats and launcher settings for RecompLauncher backups and cloud saves.
- Uses a lower 2× default 3D rendering resolution to reduce GPU load; higher resolutions remain available.
- Adds a 3GX startup loader with checked plugin parsing, title and compatibility checks, plugin executable/heap mapping, ARM bootloader handoff, and cleanup when the game exits.
- Implements plg:ldr service commands used by normal plugin loading and discovers Luma and CTGP-7 plugin paths from the emulated SD card.
- Adds GSP framebuffer address translation for the 3GX plugin framebuffer range.
- Adds CSND PCM8, PCM16, and IMA-ADPCM playback, command-list handling, and service-session resource cleanup.
- Preserves compatibility with 1.0.0 save-state data.
- CTGP-7 support is experimental and may or may not work. PSG/noise synthesis, CSND capture DMA, and external SetLoadExeParam injection are not implemented; the loader currently requires an embedded executable-check function.
Place an update .cia beside its matching base-game dump in the same library folder. The launcher recognizes update title IDs in the 0004000E namespace by their regional suffix, attaches the update to the matching base game, and selects the highest installed update version. The CTGP-7 v1.2 update title IDs are:
| Region | Mario Kart 7 update title ID | Update version |
|---|---|---|
| Japan | 0004000E00030600 |
3152 |
| Europe | 0004000E00030700 |
3152 |
| USA | 0004000E00030800 |
3152 |
| Korea | 0004000E00030A00 |
3088 |
CTGP-7 support is experimental and may or may not work. The 3GX loader is integrated, but CTGP-7 has not been validated end-to-end. The runtime has a startup bootloader, plugin memory mapping, title compatibility checks, the plg:ldr service, and a CSND software mixer for PCM8, PCM16, and IMA-ADPCM. PSG/noise synthesis and CSND capture DMA are not implemented. Plugins must contain an embedded executable-check function; external SetLoadExeParam injection is not supported yet.
For a title-specific plugin, place the .3gx file in the emulated SD-card folder user/sdmc/luma/plugins/<16-digit-title-id>/ inside the application's configured data directory. The runtime also accepts user/sdmc/plugins/<16-digit-title-id>/ and the older top-level luma/plugins/<16-digit-title-id>/ or plugins/<16-digit-title-id>/ layouts. For Mario Kart 7 USA, use title ID 0004000000030800. A fallback plugin can be placed at user/sdmc/luma/plugins/default.3gx or user/sdmc/plugins/default.3gx. The CTGP-7 plugin path user/sdmc/CTGP-7/resources/CTGP-7.3gx is also searched automatically. Put the complete extracted CTGP-7 folder in the user/sdmc folder inside the application's data directory; user/sdmc is the emulator's guest-visible SD-card root, so the plugin and its additional resources are both visible. The plugin is mapped before the game's main thread starts.
The CTGP-7 plugin has not yet been run end-to-end in this build. Its launcher flow, plugin dependencies, sound behavior, and gameplay still need validation against the real CTGP-7 plugin and matching v1.2 update on macOS.
- Download the package for your operating system from Releases.
- Extract the download and start Mario Kart 7 Recompiled.
- Choose the folder containing your decrypted Mario Kart 7 dump. RecompLauncher can instead set up from the dump file directly.
- Select the game and press Recompile. The ARM code is recompiled locally on your computer. This is a one-time step for each game dump/build; recompile again when the runtime reports the installed code is outdated.
- Start the game. The application uses the local recompiled code where available and falls back to its interpreter for code that is not covered.
The title-specific recompiled output stays on the user's computer. It is not included in this repository, CI artifacts, or GitHub Releases.
3GX plugin loading (including CTGP-7) is disabled by default in the runtime and RecompLauncher settings. Enable it manually in Settings only when you intend to use a plugin.
Mario Kart 7 Recompiled is listed on RecompLauncher. It accepts your decrypted .3ds, .cci, .cxi or .cia dump, runs the local preparation step, and launches the game without opening the normal library window. The launcher exposes supported graphics, display, emulation and audio settings. It also backs up the game's save archives, extra data, system save data, save states, cheats and settings. RecompLauncher keeps the newest ten local backups and offers cloud saves to signed-in players; individual files larger than 64 MB are not backed up by its save service.
The launcher starts in fullscreen automatically in Big Picture mode. The normal desktop default remains windowed; choose Fullscreen in the launcher's Window mode setting to change it.
This fork keeps the underlying Zakuro runtime and focuses it on Mario Kart 7:
- Ahead-of-time code recompilation through 3dsrecomp, with interpreter fallback.
- Keyboard, mouse/touchscreen, and common game-controller input.
- Configurable key and controller mappings.
- 3DS screen layouts, scaling, and graphics settings.
- Audio and per-game settings.
- Local save data stored separately under the Mario Kart 7 application-data directory.
Features inherited from the runtime remain subject to the support and behaviour of this particular game.
- Windows: unzip mario-kart-7-windows-x86_64.zip and run mario-kart-7.exe.
- macOS Apple silicon: unzip mario-kart-7-macos-arm64.zip and open Mario Kart 7 Recompiled.app.
- macOS Intel: unzip mario-kart-7-macos-x86_64.zip and open Mario Kart 7 Recompiled.app.
- Linux: use mario-kart-7-linux-x86_64.AppImage, or extract mario-kart-7-linux-x86_64.tar.gz and run ./mario-kart-7.
The macOS app is not notarized. On first launch, macOS may block it; allow it through System Settings → Privacy & Security → Open Anyway. The Linux AppImage needs the host system's ALSA sound library.
The project uses the Rust workspace and requires Rust 1.95 or newer.
cargo build --release --locked -p zakuro
cargo test --release --workspace
The desktop binary is written to target/release/mario-kart-7 (or .exe on Windows). The macOS package script bundles MoltenVK into the app:
packaging/macos-app.sh target/release/mario-kart-7 1.0.6 mario-kart-7-macos-arm64.zip
For a normal user, the prebuilt packages on the Releases page are the easiest option.
- CI runs on pushes and pull requests. It builds and tests the Rust workspace on Windows, macOS, and Linux. It also keeps a Windows executable as a temporary Actions artifact. Main-branch pushes run this CI without launching duplicate package builds.
- macOS Test Build runs for pull requests or when started manually from Actions. The normal CI matrix already builds and tests the macOS target on main pushes.
- Release is manual-only. Run Actions → Mario Kart 7 Recompiled Release, enter an existing tag such as
v1.0.6, and setpublishtotrueto build all four desktop packages and publish the GitHub Release. Main pushes and tag creation do not start release builds automatically. - For a non-publishing branch test, enter the branch name (such as
main) intagand setpublishtofalse.
- Open the repository and select Releases → Draft a new release.
- In Choose a tag, type
v1.0.6, then select Create new tag: v1.0.6. - Set Target to
mainso the release tag points to the 1.0.6 implementation. - Select Save draft. Creating the tag on the Releases page triggers the release build. The workflow will attach all four platform packages and publish the draft when they are ready.
The Rust workspace version is 1.0.6. The matching release tag is v1.0.6; leave all previous version tags unchanged.
This project is an unofficial, game-specific fork of fearkov/zakuro and uses fearkov/3dsrecomp. The original Zakuro project and the existing MIT-licensed portions retain their original notices in LICENSE-MIT. The project is now distributed under GPL-3.0-or-later to permit integration of GPL-compatible 3DS runtime components; see LICENSE.
Mario Kart 7 is a trademark of Nintendo. This project is unofficial and is not affiliated with or endorsed by Nintendo. No game ROM, generated title-specific C code, compiled game library, copyrighted game assets, or other game data is distributed. Users must provide their own lawful game dump and keep the resulting local recompilation on their own device.