Skip to content

Releases

0.2.0: build with one command

Choose a tag to compare

@schuler-ph schuler-ph released this 22 Nov 20:24

Build with one command

You now only need Docker (on Linux, or in WSL2 on Windows) and your own disc:

git clone https://github.com/schuler-ph/nsmbw-switch.git
cd nsmbw-switch
./build.sh "New Super Mario Bros. Wii (USA) (Rev 1).iso"

Copy out/switch/nsmbw/ to sdmc:/switch/nsmbw/ and start it from hbmenu. That's it.

What's new

  • build.sh: builds the Switch version with Docker as the only tool. The toolchain (devkitA64, libnx, deko3d, .NET 8) comes in a Docker image with pinned versions; no devkitPro, .NET, meson & co. on your machine.
  • Disc images directly: .iso and .wbfs work as they are, no Dolphin needed. The game ID and revision (USA SMNE01 rev 1) are checked first, with a clear message for other versions. The game is extracted straight into out/switch/nsmbw/game/, so the SD card folder is complete.
  • Prebuilt graphics libraries: Dawn and libuam come from the release switch-deps-1, checked by SHA-256 (source attached there). If the download fails, build.sh builds them itself.
  • Jobs from memory: build.sh picks the number of parallel jobs from your free memory (about 1 GB each, 3 GB kept free).

Measured (Ryzen 7 5800X3D, WSL2 Ubuntu 24.04, 4 jobs)

Time
First build from an .iso, prebuilt libraries 20 min
First build, building Dawn and libuam too 32 min
Second run (cache) about 2 min
Peak memory about 5 GB

The build from this release was started on a Switch 1 (title screen and intro). Docker Desktop on Windows/macOS and machines with 8 GB of RAM are not tested yet; reports are welcome.

.rvz/.wia aren't read inside Docker yet: convert them to ISO in Dolphin (right-click → Convert File...). The manual build without Docker is still in the README.

As before: no game files and no .nro here. Everything made from your disc stays on your machine.

Switch dependencies 1 (Dawn + libuam, prebuilt)

Choose a tag to compare

@schuler-ph schuler-ph released this 22 Nov 20:24

Prebuilt Switch graphics dependencies for building NSMBW for Nintendo Switch: Dawn (WebGPU, with the deko3d backend) and libuam (GLSL → DKSH shader compiler), as static libraries for devkitA64. No game code, no game data.

build.sh downloads this archive by default and checks it against the SHA-256 pinned in projects/nsmbw/tools/build-switch.sh, which saves building them yourself (about 10 minutes and 5 GB of disk). ./build.sh --build-deps builds them instead.

File What
nsmbw-switch-deps.tar.xz the libraries, Dawn's headers, license texts, applied patches, MANIFEST and SHA256SUMS
nsmbw-switch-deps-source.tar.xz corresponding source: Dawn 13abc3bc with its submodules, libuam f8c9eef, the WiiCompiled-Switch patcher scripts b851db9, build-switch-deps.sh and the patches
*.sha256 checksums

SHA-256 of the archive: 483308448983b70a6277d86e042c56b54c4f9032f680bbf548a4a938975ef244

Reproducible: build-switch-deps.sh --pack gives the same bytes from these pins with the packages of the devkitpro/devkita64:20260219 Docker image, checked with two independent builds (WSL and Docker). A .nro built with this archive has the same loaded sections as one built with self-built libraries.

Licenses: Dawn and Tint BSD-3-Clause, Abseil Apache-2.0, libuam zlib (with MIT parts from Mesa), the Dawn Switch patch (from DriftDroid) and the WiiCompiled-Switch scripts GPL-3.0, this project's patches GPL-3.0. The archive as a whole is distributed under the GPLv3, with its source attached here. Details: THIRD-PARTY-NOTICES.md.

Release 0.1.0

Choose a tag to compare

@schuler-ph schuler-ph released this 16 Nov 18:21
502d87f

NSMBW for Nintendo Switch v0.1.0

First release of New Super Mario Bros. Wii as a native Switch 1 homebrew (.nro), built with static recompilation: no emulator, no JIT.

Highlights

  • Local multiplayer for up to 4 players (Joy-Con pairs, single sideways Joy-Cons, Pro Controllers, handheld)
  • Switch button layout with motion controls for shake and tilt
  • 59–60 fps docked with the CPU at 1785 MHz (sys-clk)

Known limitations

  • Handheld mode and Mariko/Lite/OLED models are not measured yet
  • Some objects can be missing for a moment on the first visit to a level, while GPU pipelines compile

Requirements

Source code only, no game files and no prebuilt .nro. Build it yourself from your own USA SMNE01 rev 1 disc. See the README.

Performance reports are welcome, especially from handheld mode and other Switch models.