Commit Graph

831 Commits

Author SHA1 Message Date
Irastris 27d27e6d94 Add support for playing Dusklight using Wii disc images (#2296)
* Add offsets for Wii USA R0/R2, JPN, and PAL
Also fix an oopsie where l_pos and l_normal's offsets were swapped

* Allow loading Wii discs

* Change GameVersion::GcnJpn checks to isRegionJpn()

* Change GameVersion::GcnPal checks to isRegionPal()

* Add platformSelect and regionSelect templates, simplify a ton of code

* Add *_get() macros to simplify REL loads

* Actually accept Wii USA Rev. 2 discs

* Show the Wii USA revision in prelaunch's disc status

* l_normal isn't in Wii RELs, so I'll just hardcode it

* Account for various BLO differences

Fix crash when opening the map on Wii USA Rev 0 and Wii PAL

* Use the streamed version of the file select music

* Update language selection

* Fix the d-pad/cross button text for Wii PAL
Resizing panes that are already 120.0f wide is harmless, so I didn't bother with a GameVersion check

* Fix brightness check discrepancy, use IF_DUSK_BLOCK macros when ideal

* Update docs and the issue template
2026-08-15 11:58:09 -06:00
Irastris ac45cac56e Fix Graphics Backend option value (#2295)
* Graphics backend setting bugfix

* Better solution
2026-08-15 11:52:54 -06:00
Luke Street 9d38af22ee GfxService v1.2 + fixes (#2305)
* GfxService v1.2 + fixes

* gfx::synchronize before mod_shutdown
2026-08-15 11:50:13 -06:00
Luke Street 0f5a248401 Time revamp (#2304)
* Don't Use OSCalendarTime for Speedrun Timing

- Shouldn't rely on OSTicksToCalendarTime since it will be changed to handle time zone conversion, and that doesn't make sense on elapsed time

* Use OSGetSystemTime Extension

- Fixes desyncing issues with save file time and a couple other odd instances, particularly on mobile platforms that suspend apps

* Time revamp

* Update aurora

* Split IGT/RTA calculations

* Shift-Turbo to slow down

---------

Co-authored-by: SuperDude88 <82904174+SuperDude88@users.noreply.github.com>
2026-08-14 00:07:54 -06:00
doop 46da33be37 Use texture replacement API for HQ minimap textures (#2303) 2026-08-13 23:44:36 -06:00
TakaRikka 008a18c142 Merge pull request #2292 from TwilitRealm/item-svc
initial item service implementation
2026-08-12 15:34:45 -07:00
TakaRikka 5b4def820a couple fixes 2026-08-12 15:02:33 -07:00
baxlek 0fc05028cc Add Aiming Reticle for Bow and Slingshot (#2290)
* Change sight drawing flag to on in arrow logic

* Refactor setBowSight for PC targeting and reticle logic

* Add Aiming Reticle option to settings

Add option for Aiming Reticle in settings.

* Add aiming reticle setting to game preferences

* Add aiming reticle to user settings registration

* Add aimingReticle configuration variable

* Fix syntax error in settings.cpp

* Add aiming reticle check to bow charge condition

* Refactor bow charge sight position logic

Removed redundant sight position handling when aiming reticle is not displayed.

* Refactor setBowSight for Dusk targeting

* Clarify aiming reticle option description

* Refactor bow sight logic in setBowSight function

Removed dusk condition from bow sight check and adjusted sight drawing logic.

* Refactor sight drawing logic in d_a_alink_bow.inc

Remove redundant call to offDrawFlg() when aiming reticle is enabled.
2026-08-10 00:14:17 -04:00
TakaRikka 71b2eedc82 initial item service implementation 2026-08-09 16:40:26 -07:00
TakaRikka 82e2fd4bea Merge pull request #2283 from encounter/camera-operator
Add camera operator API to CameraService
2026-08-07 03:44:59 -07:00
TakaRikka fcd9dd0f70 Merge pull request #2282 from encounter/mods-data-dir
Add HostService.data_dir
2026-08-07 03:42:53 -07:00
Luke Street c5933be631 Add camera operator API to CameraService 2026-08-07 00:34:57 -06:00
Luke Street 928e9b4bc7 Add HostService.data_dir 2026-08-07 00:20:09 -06:00
Luke Street 3ac0fcb156 Add mods::hook::uninstall 2026-08-06 23:59:26 -06:00
Luke Street 13b3b68fe5 Migrate to Borealis (#2266) 2026-08-05 07:54:31 -06:00
TakaRikka 4604304305 mods: stage service (#2268)
* initial stage service ported from encounter's original impl

* Review cleanup

* initial stage service ported from encounter's original impl

---------

Co-authored-by: Luke Street <luke@street.dev>
2026-08-04 21:51:52 -06:00
TakaRikka 76079b6294 mods: save service (#2256)
* initial save service updated from encounter's impl

* Review cleanup

---------

Co-authored-by: Luke Street <luke@street.dev>
2026-08-03 20:58:09 -06:00
Luke Street 4504e5009f Mods: Add toasts to UiService (#2252) 2026-07-30 00:28:08 -06:00
Luke Street 7305ef09b9 Mods: WindowService, log wrappers, external rendering (#2251) 2026-07-30 00:24:24 -06:00
TakaRikka 95608438c1 Merge pull request #2227 from TwilitRealm/jpn
japanese gamecube version support
2026-07-19 01:20:07 -07:00
Luke Street 8caab1a6ba Implement iOS hook prepatching & improve MSVC PTMF support (#2222) 2026-07-17 22:35:37 -06:00
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 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 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 f000ccce0b Mod API: Resolve thunks recursively (Windows ARM64 fix) 2026-07-14 11:10:49 -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 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 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
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
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 409b60836b Add dusk::ui::append_text 2026-07-10 01:10:23 -06:00
Luke Street d9a978f21f Mod API: gfx service 2026-07-09 23:08:59 -06:00
Luke Street 7df07c6904 Mod API: Camera service 2026-07-09 18:54:44 -06:00
Luke Street 6849baac06 Mod API: UI service (#2189) 2026-07-09 10:31:34 -06:00
Luke Street 9b3b827054 Error handling fixes 2026-07-08 19:40:27 -06:00
Luke Street 4de3c20431 Fix dependency resolution on startup & unload failed startup mods 2026-07-08 18:28:26 -06:00
Luke Street 2840843e3c Catch exceptions from hook callbacks & fail mod 2026-07-08 18:27:09 -06:00
Luke Street bc11bf3563 Mods manager UI & logs viewer 2026-07-08 17:51:13 -06:00
Luke Street e9e16a8ac1 Remove redundant OSInitAlloc 2026-07-08 01:47:52 -06:00
Luke Street 4339e60ba6 Hook service, symgen manifest & data linking 2026-07-08 01:47:49 -06:00
Luke Street af5635dd42 Resource, texture and overlay services 2026-07-08 01:47:35 -06:00