Skip to content

Releases

v0.5.0 (pre-release)

v0.5.0 (pre-release) Pre-release
Pre-release

Choose a tag to compare

@mattheuspaivadini mattheuspaivadini released this 17 Nov 12:38
dbea524

Source-only pre-release. No binaries: a build of DawnOfTermina contains the recompiled game code, so it has to be built locally from your own copy of the game.

Changes since v0.4.0-pre

  • Game version 1.1 only: the build and the launcher support Majora's Mask 3D v1.1 only. The extractor requires the base .cia plus the v1.1 update (--update), and the build embeds the SHA-256 of the extracted code.bin. The old v1.0 path is gone.
  • Launcher without a terminal: running the binary with no valid game_data opens a window that asks for the base and update .cia files, extracts them, and then starts the game. Invalid or partial data is rejected with a message.
  • Shaders and pipelines before the game opens: fixed shaders are compiled to SPIR-V at build time; a pipeline seed (resources/pipeline_seed.bin) is compiled by the launcher, and all pipelines are created before the guest thread starts. Pipeline and SPIR-V caches live in cache/.
  • Mods ready on first launch: extract_cia.py --download-mods fetches Project Restoration (plus HD HUD) and the big screen layout, checks their SHA-256, and applies them.
  • Renderer optimisation (per draw): indexed draws keep their index buffer and only the used vertex range is uploaded; vertex fetch uses a per-draw template; consecutive draws into one framebuffer share a render pass; each texture is hashed once per command list.
  • Interpolated frames on a worker thread: the replay of in-between frames runs on a renderer thread, so the game thread no longer waits for it. begin_list takes no lock.
  • Presentation at the selected frame rate: the present loop is limited to 30/60/90/120 FPS with or without VSync; the overlay now shows the real presented rate.
  • Recompiler and HLE: indirect calls have an inline fast path, QueryMemory keeps the last region per thread, and jump-table cases that target the next instruction are labelled.
  • Cleanup: the unused SDK-level fs API and the svc SleepThread/ExitProcess wrappers are removed; the pad debug print is gone.
  • Tour: the scene tour skips unused entrance groups.
  • Docs: README logo, and the optimisation stage is recorded in CLAUDE.md.

Building

Bring your own unencrypted .cia of The Legend of Zelda: Majora's Mask 3D (USA), and the v1.1 update .cia.

python3 tools/extract_cia.py "<your game>.cia" game_data --update "<your v1.1 update>.cia"
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release
cmake --build build
./build/dawnoftermina game_data

Requires a C++20 compiler, CMake ≥ 3.20, SDL3, Vulkan, glslang and Python 3. See the README.

v0.4.0-pre

v0.4.0-pre Pre-release
Pre-release

Choose a tag to compare

@mattheuspaivadini mattheuspaivadini released this 15 Nov 22:31
c3b10fa

Source-only pre-release. No binaries: a build of DawnOfTermina contains the recompiled game code, so it has to be built locally from your own copy of the game.

Changes since v0.3.0-pre

  • Frame interpolation 60/90/120 FPS (DOT_FPS, fps in config.toml, F1 "Frame rate"): the game still simulates at 30 Hz; 1–3 in-between frames are replayed per game frame. Presentation follows a timeline in guest VBlanks (new Renderer::vblank, forwarded by the GSP), so each image is shown at its content time. Measured on 720p/60: 96% of presents advance smoothly.
  • Camera interpolation: the rigid camera motion is now a slerp with linear translation (camera::lerp) instead of a fixed midpoint, so 2 or 3 in-between frames are evenly spaced.
  • UV translation fix: texture-coordinate translations are proven per draw (a +1.0 probe on the uniform must move exactly one texcoord output by ±1) and unwrapped along the shortest path, removing flashes on scrolling textures and flipbook cell switches. Large cell jumps switch halfway instead of blending.
  • Performance overlay: [performance] mode = off / fps / full and opacity in config.toml, with a menu entry (FPS, 1% low, CPU, GPU, RAM).
  • Config: fps accepts 30, 60, 90 and 120; Renderer::set_interpolate is replaced by set_frame_rate.
  • Stats: DOT_STATS also reports presents (smooth / repeated / skipped) and UV fixes.
  • Stopped-guest notice: when the guest stops on an emulation error, the window title and a message box say so (DOT_EXIT_ON_STOP keeps the old exit behavior).
  • Recompiler: computed add pc, pc, rX, lsl #2 with a non-cmp condition is handled (branch tables and libgcc's unrolled __udivsi3/__divsi3 in mod code), with tests in tools/recomp/test_lifter.py.
  • Tests: self-test covers the perf config keys and the new camera lerp at several fractions.
  • Docs: README and CLAUDE.md status for stage 11.

Building

Bring your own unencrypted .cia of The Legend of Zelda: Majora's Mask 3D (USA).

python3 tools/extract_cia.py "<your game>.cia" game_data
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release
cmake --build build
./build/dawnoftermina game_data

Requires a C++20 compiler, CMake ≥ 3.20, SDL3, Vulkan, glslang and Python 3. See the README.

v0.3.0 (pre-release)

v0.3.0 (pre-release) Pre-release
Pre-release

Choose a tag to compare

@mattheuspaivadini mattheuspaivadini released this 15 Nov 19:58

Source-only pre-release. No binaries: a build of DawnOfTermina contains the recompiled game code, so it has to be built locally from your own copy of the game.

Changes since v0.2.0-pre

  • Game update v1.1 (optional): extract_cia.py --update <update.cia> validates the update (title ID, encryption via TMD) before writing; separate update RomFS; per-version hook tables.
  • Project Restoration (optional): --restoration applies the mod with a pure-Python BPS patcher; --romfs adds files to the RomFS image; HD HUD layout support.
  • N64 unified single-screen layout (default): hearts, item slots, Ocarina/Gear/rupees and minimap moved to the top-screen corners; touch menus pop up over the game. Tab toggles the minimap, F3 forces the pop-up.
  • DekUI port: rigid camera interpolation and FOV (instruction hooks), and the full single-screen interface (inventory, maps, notebook, ocarina, minimap, text). DOT_DEKUI=0 disables it.
  • Recompiler: instruction hooks can redirect control flow; patch lines for non-SVC substitutions.
  • Screen fixes: pause-menu backdrop is captured from the GPU (was black).
  • Docs: README credits, branch workflow in CLAUDE.md.

Building

Bring your own unencrypted .cia of The Legend of Zelda: Majora's Mask 3D (USA).

python3 tools/extract_cia.py "<your game>.cia" game_data
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release
cmake --build build
./build/dawnoftermina game_data

Requires a C++20 compiler, CMake ≥ 3.20, SDL3, Vulkan, glslang and Python 3. See the README.

v0.2.0 (pre-release)

v0.2.0 (pre-release) Pre-release
Pre-release

Choose a tag to compare

@mattheuspaivadini mattheuspaivadini released this 15 Nov 00:01

Source-only pre-release. No binaries: a build of DawnOfTermina contains the recompiled game code, so it has to be built locally from your own copy of the game.

Changes since v0.1.0-pre

  • Fixed ring/stripe artefacts in the Lost Woods trunk fall, the Deku transformation and the Clock Tower door. Fragment-lighting LUT differences are sign-magnitude; they were read as two's complement, so point lights with distance attenuation drew concentric rings.
  • Savestates: F5 saves and F9 loads states/slot1.state; DOT_LOAD_STATE=<file> loads at boot. Threads resume from recompiled resume points (svc sites, call return sites, loop heads).
  • Rendering diagnostics: DOT_DUMP_TEX, DOT_SKIP_TEX, DOT_TRACE_TEXVA, DOT_TRACE_LIGHT, DOT_DEBUG_FS.

Building

Bring your own unencrypted .cia of The Legend of Zelda: Majora's Mask 3D (USA).

python3 tools/extract_cia.py "<your game>.cia" game_data
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release
cmake --build build
./build/dawnoftermina game_data

Requires a C++20 compiler, CMake ≥ 3.20, SDL3, Vulkan, glslang and Python 3. See the README.

v0.1.0 (pre-release)

v0.1.0 (pre-release) Pre-release
Pre-release

Choose a tag to compare

@mattheuspaivadini mattheuspaivadini released this 14 Nov 21:13

Source-only. The Linux build that was attached here was removed: a build contains the recompiled game code and must be made locally from your own copy of the game (see the README).