CPP_U Unlocked
CPP_U-Unlocked
Tech Stack
README
U Unlocked
Super Smash Bros. for Wii U, rebuilt for PC.
A native Windows experience for Super Smash Bros. for Wii U, with a polished launcher, controller remapping, practical graphics settings, and a mod-management workflow.
About this project
U Unlocked is a Windows-first PC project for Super Smash Bros. for Wii U. It brings the native game runtime, launcher, controller setup, graphics configuration, and mod workflow together as one coherent application.
The goal is to make the complete experience feel intentional: configure controllers before the first match, choose sensible graphics settings for the hardware in use, manage mods without manually moving files, and get clear diagnostics when something goes wrong.
The launcher takes design inspiration from Melee Unlocked. That inspiration is limited to product design and interaction patterns; its source code is not included in this repository.
What you'll find here
- Native PC runtime - C++20, Vulkan rendering, SDL3 input, and a native Windows game runtime. The Windows build generates an original U Unlocked application icon and transparent title wordmark. The launcher displays that wordmark in its home header, and the game runtime overlays the same asset onto the title-logo regions.
- Game installation - validation of the game, update, and optional DLC folders supplied by the user.
- WUA installation - the Windows launcher can import a
.wuaarchive through the bundled bounded extractor. It extracts into a private staging directory, rejects unsafe paths/reparse points and resource-limit violations, validates the Smash base-game title ID, then activates the imported library without modifying or deleting the original archive. Real-archive end-to-end testing remains outstanding. - Launcher - a controller- and mouse-friendly home dashboard with Play, Build, game-update management, Online, Netplay, Controls, Graphics, Mods, and Diagnostics pages. Build manages the user-supplied game/update/DLC folders; Diagnostics reports runtime and system information and can copy a support report.
- Controller configuration - keyboard input is permanently assigned to Wii U GamePad player 1. Physical gamepads are assigned only to Pro Controller players 2-8; they cannot take over or merge into the keyboard slot. The Controls page supports per-device button/axis remapping, Pro Controller slot assignment, per-axis dead zones and stick inversion, trigger thresholds, a live input monitor, JSON profile saving, and automatic discovery of standard Cemu profile folders.
- Cemu profile import - imports Cemu Wii U GamePad and Pro Controller XML profiles using explicit SDLController mapping translation. Unsupported input APIs and settings are reported; imported mappings remain unsaved until reviewed and saved by the user.
- Graphics settings - Performance (720p render target), Balanced (1080p), Quality (1440p), and Automatic starting profiles are available, with manual render-resolution, display-mode, and presentation-rate controls. The game renderer keeps Vulkan 1.3 as its minimum and logs the selected GPU, driver, API version, memory heaps, and optional capabilities. Vulkan is the only graphics backend being developed for the first playable release; all alternative backends and cross-backend benchmarking are deferred until after that release. These profiles are starting points, not hardware benchmarks; launcher-side capability reporting and measured hardware-aware recommendations remain planned. See Vulkan backend strategy.
- Netplay - host game streaming and direct IP/VPN joining; room discovery remains disabled until a U Unlocked-owned compatible service is deployed. Netplay packet handling now enforces exact host-side lengths, rejects stale input sequences, clamps axes, rate-limits UDP traffic and handshakes globally and per source IP, limits keyframe requests, caps guest video reassembly at 8 MiB, validates fragment metadata, and checks audio sample framing. The protocol still has no app-level authentication or encryption, so use trusted LAN/private-VPN peers only; public port forwarding is not safe yet.
- Mod management - folder-based installation and enable/disable support. Archive installation is temporarily disabled until a bounded extractor can safely reject traversal, links, duplicate paths, oversized archives, and overwrite attempts. Profiles, dependency checks, conflict reporting, and transactional rollback remain planned.
- Performance profiles - the launcher provides Performance, Balanced, Quality, and Automatic profiles. Performance uses a 1280x720 render target, Balanced 1920x1080, and Quality 2560x1440. The Iris Xe target still needs on-device benchmarking before any preset can be called optimal.
- Application updates - the launcher checks GitHub releases automatically in a background worker at startup and supports stable/beta channels. Installing remains a user-confirmed action. The updater verifies SHA-256 package and per-file hashes, stages updates, backs up replaced launcher files (including the title wordmark), and rolls back if replacement or relaunch fails. Game files, mods, saves, console files, and settings are not replaced. User-selectable rollback and end-to-end update testing remain outstanding.
- Diagnostics - the launcher reports platform, logical CPU cores, system memory, CPU optimisation path, SDL launcher renderer, game/update validation, active mods, shader-cache count, and log location. Vulkan capability reporting and deeper automated troubleshooting remain planned.
- Preserved game behaviour - presentation interpolation creates additional visual frames from recorded render state; it must not advance gameplay simulation, physics, collision checks, or input timing. A 120 Hz display can therefore receive smoother presentation while the game simulation retains its original cadence. Interpolation remains optional and may add visual latency.
Features described as planned are not represented as already implemented. See the implementation roadmap and architecture for the delivery sequence and engineering requirements.
Simulation and presentation timing
The runtime maintains a 59.94 Hz Wii U display/vblank clock (one period every 1001/60000 seconds). The host display can drive that clock when supported, and a separate timer supplies vblanks when host presentation stops. Rendering and presentation also have a dedicated Vulkan presentation thread, which can repeat the newest completed image when the GPU has not produced another one yet. On supported high-refresh displays, optional interpolation can replay recorded draw commands between real title frames. Those replays must never execute another gameplay update, advance physics, process another input tick, or change collision results.
This separates the runtime's vblank clock from the rate at which new images reach the screen, but it does not yet guarantee that the guest game loop always advances 59.94 simulation frames per second under a GPU bottleneck. The command processor currently waits for GPU work before retiring submissions/completing frames, and the title paces parts of its loop on completed flips. Those synchronization points can back-pressure guest progress when rendering is slower than the target. For example, a 42 FPS GPU may still receive 59.94 host vblank notifications while the guest game loop advances more slowly because it is waiting for a flip. The correct result is not to fake 60 FPS; it is to preserve Wii U timing while safely allowing simulation to continue ahead of queued rendering.
Achieving that stronger guarantee requires a bounded frames-in-flight design, safe snapshots/lifetimes for guest memory and GPU resources, and explicit handling of input sampling, audio, save-state visibility, and netplay determinism. It must be profiled and tested before changing the current synchronization: removing waits blindly risks guest-memory races, corrupted frames, and incorrect game behaviour. The existing presentation thread and interpolation/replay path are a foundation, not proof that this work is finished. The current synchronization points, direct guest-memory hazards, profiling switch, implementation sequence, and acceptance criteria are documented in GPU frame pacing and simulation decoupling.
Why U Unlocked?
The objective is not simply to make the game launch on a PC.
Controller setup should be straightforward, settings should explain what they change, mods should be easy to manage, and performance defaults should be based on the hardware actually detected. Existing saves, game files, mod formats, and online compatibility should be preserved wherever possible.
Current status
The native runtime and Windows build foundation are part of this repository. The launcher includes Play, Build Runtime, game-update management, Online, Netplay, Controls, Graphics, Mods, and Diagnostics workflows. Controls supports configurable keyboard bindings for all 23 Player 1 GamePad actions, including both sticks. Defaults use arrow keys for the D-pad, WASD for the left stick, U/H/J/K for the right stick, Y/I/Space/N for A/B/X/Y, Left Shift/L for L/R shield, and Q/E for ZL/ZR grab. Physical button and axis capture is available for Pro Controllers assigned to Players 2-8, alongside per-axis calibration, a live input monitor, per-device JSON profile persistence, automatic Cemu profile-folder discovery, and a Cemu XML importer for SDLController profiles. In-game, keyboard input is always player 1 (the Wii U GamePad); physical controllers can only occupy Pro Controller slots for players 2-8. The launcher also provides direct IP/VPN Netplay joining without requiring a room directory. The Library screen imports WUA archives through a bundled bounded extractor, stages and validates the extracted base game, and preserves the source archive. The release packager embeds a clean source build kit, a SHA-256-verified precompiled Windows dependency prefix, and the generic PowerPC recompiler built from the matching source revision. The launcher bootstraps the pinned Windows compiler/build tools, installs those prebuilt libraries instead of compiling SDL/shaderc/glslang/SPIRV/zlib/zstd locally, and uses the bundled recompiler to translate the user's separate base/update RPX files. Only the game-specific generated code and final runtime targets are compiled locally. Generated-code outputs are cached under %LOCALAPPDATA%\U Unlocked\BuildCache, verified against the RPX and recompiler hashes, and retained across build-kit updates, so unchanged game data is not recompiled on subsequent builds. Source checkouts retain the existing dependency-source build fallback. Play starts that build automatically when the selected executable is missing. This new first-run pipeline has not yet passed its first complete Windows CI runtime build or a real-game boot/match test, so the project does not yet claim a playable release. The current v0.2.0-dev download includes the launcher and local build kit but not prebuilt game-specific executables; it is not yet a finished playable release. Windows launcher update checks and a checksum-verified staged update helper are implemented; the release package includes a ZIP and SHA-256 sidecar. End-to-end update testing, user-selectable rollback, secure ZIP/7z/RAR mod installation, real-WUA end-to-end testing, richer mod management, launcher-side GPU/Vulkan reporting, and on-device performance testing remain outstanding. Runtime startup logs Vulkan device/driver/API details, memory heaps, and optional features. Graphics profiles are explicit starting configurations, not automatic hardware tuning.
The initial target machine is an HP EliteBook 640 G9 provisionally identified as an Intel Core i5 model with Intel Iris Xe graphics and 16 GB RAM. The exact CPU model and Vulkan driver capabilities still need to be confirmed on the target machine. Defaults will be based on runtime detection and measured performance rather than the laptop model name.
No Nintendo game data, keys, console files, user saves, or generated recompiled game code are included in this repository.
Built with
| Area | Technology |
|---|---|
| Language | C++20 |
| Build system | CMake and Ninja |
| Platform | Windows 10/11 x64 |
| Windowing and input | SDL3 |
| Graphics | Vulkan 1.3 |
| Configuration | Versioned JSON and INI |
| Build automation | PowerShell and Python |
| Source control | Git and GitHub pull requests |
Run locally
Requirements
- 64-bit Windows 10 or Windows 11.
- Windows Package Manager (
winget) and an internet connection for the first local build. The build bootstrap installs pinned compiler/build utilities and Python automatically. - Approximately 16 GB RAM for a full native build; more memory and free disk space provide additional headroom.
- A Vulkan 1.3-capable graphics driver.
- Your own legally obtained Super Smash Bros. for Wii U game dump.
Get the source
Clone the repository normally. The native runtime is included directly in the engine\ directory.
git clone https://github.com/joshuaargent/CPP_U-Unlocked.git
cd CPP_U-Unlocked
The first build bootstraps the pinned Windows toolchain into %LOCALAPPDATA%\U Unlocked\Toolchain, outside the replaceable build kit so it survives application updates. The setup uses the official llvm-mingw release archive with a checked SHA-256 digest and retries interrupted downloads, plus version-pinned CMake, Ninja, and Python packages. Official launcher releases include a source bundle for all 11 locked third-party dependencies, a precompiled dependency prefix, the generic recompiler, the launcher, and the WUA extractor. The precompiled prefix is tied to the exact dependencies.lock.json hash and every file is verified against an internal SHA-256 manifest before installation. Players do not compile the third-party libraries, generic recompiler, launcher, or WUA extractor. The player's own RPX files are translated locally, and generated code is cached in %LOCALAPPDATA%\U Unlocked\BuildCache against the RPX and recompiler hashes. The first build still needs an internet connection to download the pinned compiler toolchain; later application updates reuse the existing local toolchain. If the precompiled prefix is absent (for example, when building from a Git checkout), the build kit fetches immutable GitHub commit archives with bounded retries and compiles dependencies locally. Git is not required for the local build kit.
Game files
The runtime expects the user's own extracted Wii U game folders:
| Folder | Title ID | Required |
|---|---|---|
| Game | 0005000010144F00 |
Yes |
| Update | 0005000E10144F00 |
Recommended |
| DLC | 0005000C10144F00 |
Optional |
Keep game data, console files, keys, and saves out of Git, issue attachments, and release packages.
Build U Unlocked
Run the library build entry point from the repository root, using the same separate base-game and update folders selected in the launcher:
.\tools\windows\build-from-library.ps1 -GameDirectory '<extracted base-game folder>' -UpdateDirectory '<extracted update folder>'
The script validates each folder's code\app.xml title ID and code\cross_f.rpx before starting. It bootstraps the compiler/build tools, fetches pinned third-party sources, records a timestamped build log under %LOCALAPPDATA%\U Unlocked\BuildLogs, builds the Vulkan runtime and all four CPU/game variants, verifies every executable, and writes the completed build to Play\. The launcher now exposes BUILD RUNTIME and automatically starts this workflow from PLAY when the required executable is missing. The lower-level build-u-unlocked.ps1 entry point remains available when RPX file paths are already known.
The release packager embeds a build kit beside the launcher with project source, pinned dependency sources, precompiled generic libraries and tools. It contains no Nintendo game data, keys, generated game code, or game-specific runtime executables. The build kit uses the selected local game/update RPX files and keeps all generated game-specific output on this PC. Existing launcher releases predate this integration; publish and validate a new release before users receive the reduced-build workflow. Do not distribute generated game code or executables built from user game files.
Package the launcher for a release
For a reviewed release, update the launcher version in engine/launcher/smash/main.cpp, commit the version change, create a matching vMAJOR.MINOR.PATCH tag (or prerelease tag), and push the tag. The Windows launcher release GitHub Actions workflow then builds and links the launcher, builds the bounded WUA extractor, creates the versioned package and manifest, verifies the SHA-256 sidecar, and publishes both assets to a GitHub release. The workflow rejects tags that do not match the source version. It also supports a manual run against an existing version tag.
The package contains U Unlocked, its original title-logo.png branding asset, the bounded WUA extractor, the updater, runtime DLLs, a separately checksum-covered bundle of all pinned third-party source dependencies, the precompiled Windows dependency prefix, the generic PowerPC recompiler, and required licence notices. The update checker expects the asset name U-Unlocked-vVERSION-Windows-Launcher.zip and its .sha256 sidecar. The package does not include the game runtime; each user builds that locally from their own game files. The first tagged release still needs to run successfully before the automated release path can be considered verified. For a local package build, run .\engine\tools\windows\package-release.ps1 -Version VERSION from the repository root.
Development and pull requests
Changes are developed on focused feature branches and submitted as pull requests against main.
- Keep changes scoped to one coherent feature or fix.
- Preserve game compatibility and user data unless a change is deliberate, documented, and tested.
- Run the relevant build and tests before requesting review.
- Address automated review findings and CI failures before merging.
- Use Squash and merge after review and validation.
- Keep release publication separate from ordinary commits. Releases should be created from reviewed, merged version tags.
Licensing and third-party code
The repository includes MIT-licensed runtime and recompilation components. The required copyright and permission notice is retained in LICENSES/RECOMPILATION-MIT-LICENSE.txt. Third-party components retain their own licence files and notices; see third-party notices.
Melee Unlocked is used as a product-design reference only. Its GPL-licensed implementation is not copied into this repository.
Super Smash Bros. for Wii U and all associated game assets remain the property of their respective rights holders. This project is not affiliated with or endorsed by Nintendo, Bandai Namco, or Sora Ltd. Users must provide their own game files. Do not commit game dumps, keys, console files, saves, proprietary assets, or generated recompiled game code.
U Unlocked · Built for the game. Designed for PC.