Commit Graph

6741 Commits

Author SHA1 Message Date
TakaRikka 6058a0c597 Merge branch 'main' of ssh://github.com/TwilitRealm/dusklight into jpn 2026-07-16 15:09:23 -07:00
Luke Street 1bae8a5e6a DuskDsp: Fix streamed audio position tracking 2026-07-16 00:10:07 -06:00
Luke Street ec51ba298b Update docs/modding.md 2026-07-15 13:07:22 -06:00
Luke Street 76b56cd8b8 Forgot to stage this 2026-07-15 12:46:57 -06:00
Luke Street e9ebb174f1 Mod SDK: Fix Windows ARM detection; ignore dotfiles in dir copies 2026-07-15 12:44:27 -06:00
Luke Street 12261dbc49 Update aurora 2026-07-15 12:04:41 -06:00
Luke Street 5db55c508b Mod API: Rename dusk::mods -> mods 2026-07-15 12:04:26 -06:00
Luke Street 5ea7f7ca9a Mod SDK: Auto-download link stub for self-contained mods 2026-07-15 12:04:00 -06:00
Luke Street 0f2a00cd1f Mods: Embed symdb in linked executable (#2216)
* Mods: Embed symdb in linked executable

* Update to symgen v1.2.3
2026-07-15 00:26:34 -06:00
Luke Street adfb830b4d hook: Fix thunk re-resolution on Windows 2026-07-15 00:08:19 -06:00
Luke Street a2fd82d18b Android: Copy libc++_shared.so in stage-jni-libs.sh 2026-07-14 22:52:13 -06:00
Luke Street 30def245f0 Mods: Reject old layout mods & improve errors 2026-07-14 20:32:01 -06:00
Luke Street a6f059827b Game ABI / headers refactoring (#2215)
* Game ABI / headers refactoring

* Delete dusk/imgui.h
2026-07-14 19:24:08 -06:00
Luke Street 49a3c9e2ac Merge pull request #2211 from encounter/modmeta
Mod API: Refactor mods to have static metadata for parsing
2026-07-14 17:48:42 -06:00
Luke Street eed14acdc6 Annotate all data with DUSK_GAME_DATA (#2214)
The hope of auto-importing data via lld MinGW
+ pseudo_reloc is now dead thanks to ARM64,
so I just wrote a script to go annotate every
exported data symbol in the game instead.
2026-07-14 13:49:21 -06:00
Luke Street a95bc76237 Mods: Remove -lldmingw + pseudo_reloc
It turns out this approach can't work on
ARM64 Windows due to the relocation model,
so we can simplify and just remove it
entirely.

Separately, I will make a commit tagging
all game data as DUSK_GAME_DATA, so things
work uniformly across cl/clang-cl and x64/
arm64.
2026-07-14 11:10:49 -06:00
Luke Street f000ccce0b Mod API: Resolve thunks recursively (Windows ARM64 fix) 2026-07-14 11:10:49 -06:00
Luke Street 8471fa0107 Android: Bundle in-tree mods into the APK 2026-07-14 11:10:49 -06:00
Luke Street d5fcd79306 CI: Install & package the symbol manifest on Windows/Linux 2026-07-14 11:10:49 -06:00
Luke Street 26d22d414a Mods: Enable Windows ARM64 mod linking 2026-07-14 11:00:04 -06:00
Luke Street f14278cec8 CMake: Remove release preset
No longer supporting LTO with modding.
2026-07-14 11:00:04 -06:00
SuperDude88 f5d30a886d FPS Counter Fix (#2207)
* FPS Counter Fix

I broke it in #2198 oops

* Run clang-format
2026-07-13 23:07:02 -06:00
Luke Street dfc3077333 CI: Add sdk/ link stubs in build artifacts 2026-07-13 20:57:11 -06:00
Luke Street 1bd8682855 Mods: Curate exports and generate link stubs
`symgen exports` replaces -export_dynamic on Apple and curates
Android's dynamic symbols with a version script. `symgen stub` then
emits sdk/stub-{macos,ios,tvos}-<arch>, sdk/stub-android-<arch>.so,
and sdk/windows-<arch>.lib.
2026-07-13 20:57:11 -06:00
Luke Street d2cdbf0a83 Mods: Rework mod linking
Apple: mods are now MH_BUNDLE (.so) linked with -bundle_loader,
replacing the deprecated (on iOS) -undefined dynamic_lookup.

Windows: clang-cl mods link dusklight.exe directly; lld's mingw driver
synthesizes imports from the export table. cl still requires the
import library.
2026-07-13 20:42:57 -06:00
Luke Street 700bbf0a5a Mod API: Move dylibs to libs/{platform}; services import latest minor versions 2026-07-13 20:42:35 -06:00
Luke Street cdb36e9c42 Mod API: __attribute__((used)) on clang-cl 2026-07-13 20:42:35 -06:00
Luke Street cca104584e Mod API: Aggregate-initialize import/export records
Starting with VS 18 / cl 14.51, MSVC's constant evaluator
rejects a pointer-to-member in a constant initializer that also
contains any computed data, a consteval call or even a copy of a
constexpr object (C2127).

Hook records are now aggregate-initialized from literals only: the
computed name bytes (vtable symbol + display name) are baked into
char... template arguments and sizes/kinds are spelled inline.
2026-07-13 20:42:35 -06:00
Luke Street 9687a9d95a Mod API: Static import/export/hook metadata & resolution 2026-07-13 00:53:37 -06:00
Luke Street 8cc4ce94b8 Mods: Don't use RTLD_DEEPBIND with ASAN 2026-07-12 20:14:12 -06:00
SuperDude88 641ac5877e Fix Overlapping Overlays (#2198)
Still overlaps while the pipeline building overlay is fading out
2026-07-12 16:12:59 -06:00
Giorgio Mendieta da38a1d2d3 Smooth fadeout for dynamic shadows (#2203)
* Implement smooth fadeout of dynamic shadows

* Add edge fade out configuration for dynamic shadows
2026-07-12 16:11:41 -06:00
jdflyer 6a79bf1e79 Add command line arguments for --develop, --load-save, and --stage (#2150)
* Add command line arguments for --develop, --load-save, and --stage

* Include sstream so clang stops crying :(

* Put stage load parsing in main, better load logic
2026-07-11 12:16:38 -06:00
Irastris 20f786a43e HUD scaling fixes (#2192)
* Immediately apply hudScale to the dpad and rupee panes

* Translate the dpad to follow along with the minimap scale
2026-07-10 21:41:36 -06:00
Josh Smith 4c2bb26df7 Add missed mirror-mode message overrides (#2108)
PR #1704 hand-curated mirrorMsgOverrides from in-game observation, which left
gaps. Auditing the GC BMG data (res/Msgus, GZ2E01) for every message carrying a
Wii redirect turned up 13 more that belong in the table:

- Two Kakariko signposts (0x1f41, 0x1f42) whose arrow/name layout is mirrored on
  Wii but were never added.
- Five dialogue/journal lines whose direction words flip GC vs Wii, including
  Midna's "Eldin Province to the east/west" line reported in the PR thread.
- Six shop browse-arrow lines in the same class as entries the original pass
  already included.

Each added id appears with a Wii redirect in exactly one BMG group, so the
id-only lookup resolves unambiguously. 0x1b79 was deliberately left out: it
maps to different Wii variants in zel_01 (shop) and zel_07 (fishing controls),
which this table can't disambiguate without becoming group-aware.
2026-07-10 21:36:40 -06:00
Luke Street 229c162580 Merge pull request #2191 from Irastris/fix-bloom-transitions
Add deltatime to d_kankyo bloom/fog transitions
2026-07-10 21:35:27 -06:00
Luke Street 6d4a7e55e9 Merge pull request #2193 from encounter/mods-gfx
Mod API: `gfx` service; GTAO & dynamic shadow demo mods
2026-07-10 21:25:16 -06:00
jdflyer b6e3c50d88 Mod SDK: Allow building mods with no sources (#2195) 2026-07-10 21:02:28 -06:00
SuperDude88 287ee6b2ee Small Speedrun Mode Cleanups (#2179)
* Deduplicate Speedrun Overrides

Avoids issues where only one is updated + makes sense organizationally

* Move restore_from_speedrun_mode

I think it makes more sense to have this in the same place the overrides are set

* Camelcase nit

---------

Co-authored-by: Irastris <irastris15@gmail.com>
2026-07-10 22:00:52 -04:00
Luke Street 7113584632 SlotMap abstraction & log fix 2026-07-10 17:42:36 -06:00
Luke Street 867ec7fbab Forward WebGPU exports through Dusklight 2026-07-10 09:42:25 -06:00
Luke Street 157bbfb4c9 Mark full game targets as ABI exporters 2026-07-10 02:04:59 -06:00
Luke Street 2fcbebcd51 Limit Dawn mod linkage to Windows 2026-07-10 01:52:17 -06:00
Luke Street 50565b37fc Fix mod demo CI linkage and signing 2026-07-10 01:45:05 -06:00
Luke Street 84e7394d5b Dynamic shadows demo mod 2026-07-10 01:10:23 -06:00
Luke Street 409b60836b Add dusk::ui::append_text 2026-07-10 01:10:23 -06:00
Luke Street 75a249f3e1 GTAO demo mod 2026-07-10 01:10:23 -06:00
Luke Street d9a978f21f Mod API: gfx service 2026-07-09 23:08:59 -06:00
Irastris 3585ab8a59 Add deltatime to bloom/fog transitions 2026-07-09 21:05:33 -04:00
Luke Street 7df07c6904 Mod API: Camera service 2026-07-09 18:54:44 -06:00