Commit Graph

2819 Commits

Author SHA1 Message Date
Irastris 880fc5e2f9 Update Aurora submodule 2026-03-28 19:18:28 -04:00
Irastris daf2954d43 Revert d_s_logo speedup, skip logos entirely instead 2026-03-28 19:18:06 -04:00
CraftyBoss 8cb91016d9 increase d_a_coach_2D heap size 2026-03-28 10:47:55 -04:00
CraftyBoss ce12d168f0 Fix uninitialized field causing occasional crash in d_camera::lockonCamera, fix wolf howling scissors 2026-03-28 00:56:10 -04:00
Max Roncace d63ffe6030 Fix Clang compiler error due to CRASH macro 2026-03-27 23:50:31 -04:00
TakaRikka bd33160bb9 Merge pull request #135 from TakaRikka/pjb-audio
Audio
2026-03-27 20:36:06 -07:00
Irastris 0b05eac79f Fix MSVC RelWithDebInfo/Release compilation after upstream merge 2026-03-27 23:28:24 -04:00
PJB3005 c4d0189175 Fix map loader gameRegions literally being 2.7 MiB of recursive arrays
Just moving it to std::vector, easy enough.
2026-03-27 17:34:05 +01:00
PJB3005 81d0312f2b Merge branch 'main' into pjb-audio 2026-03-27 17:18:11 +01:00
PJB3005 5d24e1125f Re-add src == dst check in SafeStringCopyTruncate
Accidentally dropped this while iterating on the exact implementation.
2026-03-27 17:17:45 +01:00
PJB3005 a2b32c27c0 Do use strncpy in SafeStringCopy
I figured out how to mute the warnings.
2026-03-27 17:16:41 +01:00
PJB3005 54f4dddbde Fix CRASH() macro outside MSVC
Just add a CRASHF() overload that... isn't necessary anymore. Oh well.
2026-03-27 17:07:54 +01:00
PJB3005 abfe917008 Add replacement helpers for strncpy[_s]
Portable without vulnerabilities.
2026-03-27 16:54:51 +01:00
PJB3005 f6f2f14a60 Remove SDL mixer
Didn't end up using it.
2026-03-27 15:10:31 +01:00
PJB3005 c9d81c924c Audio channels are sorted with a stable sort 2026-03-27 14:54:27 +01:00
PJB3005 0ef39ae045 Show new audio channels as green on the debug tool 2026-03-27 14:54:17 +01:00
PJB3005 50303bba1b Implement master volume & volume interpolation
Does not fix clicking :(

Fixes https://github.com/TakaRikka/dusk/issues/132
Fixes https://github.com/TakaRikka/dusk/issues/128
2026-03-27 14:54:03 +01:00
PJB3005 21ce0d35b0 Replace ugly cast in dusk::audio::DspRender 2026-03-27 13:35:33 +01:00
PJB3005 962193d73c Skip oscillator channels properly I think 2026-03-27 12:42:37 +01:00
Lurs 258d42b49e fix stuck note e.g. in Hyrule field 2026-03-27 12:23:41 +01:00
Max Roncace 73a8ba0577 Use stubs instead of including debug files for last upstream merge 2026-03-27 02:32:20 -04:00
Max Roncace ef1cfc5d28 Merge remote-tracking branch 'decomp/main' 2026-03-27 02:02:24 -04:00
YunataSavior f398cf04ad Add "Selected Layer" to Map Loader 2026-03-26 20:18:18 -07:00
Max Roncace 4309cd2aa5 object-particle debug almost matching (#3136) 2026-03-26 18:56:04 -07:00
Roman Sandu b0cd70ce74 JAHostIO and friends (#3131) 2026-03-26 18:54:07 -07:00
Max Roncace 6764a60364 Fix UB in search_ground_1 in d_a_e_yg
This could cause a crash and was previously fixed by 7d3795f7, but
it's a band-aid solution. This fix addresses the underlying bug that
actually causes the crash.

The workaround remains in place for now because similar bugs related
to NaNs have been encountered, and it's not currently known how many
places in the codebase are affected as well.
2026-03-26 20:11:39 -04:00
PJB3005 2240c04cec Fix shutdown crash 2026-03-26 15:03:48 +01:00
TakaRikka 803eb07341 Merge branch 'main' of https://github.com/TakaRikka/dusk 2026-03-26 04:52:52 -07:00
TakaRikka e212ccd417 save editor inventory menu wip 2026-03-26 04:52:09 -07:00
Lurs 4a90460ba0 Fix audio memory leak 2026-03-26 11:02:24 +01:00
YunataSavior 488ceb8136 Fix "switch case passes initialization" in d_a_peru 2026-03-25 21:28:58 -07:00
Max Roncace 204f35f7ae Fix incorrect asserts in object-particle
This fixes a crash in the first King Bulblin sequence (in Ordon Spring)
as well as in the first cutscene in Renado's sanctuary, and probably
some other sequences too.

This is meant as a band-aid until the upstream fix here is merged:
https://github.com/zeldaret/tp/pull/3136
2026-03-25 20:57:31 -04:00
Max Roncace 0de67a8320 Add even more heap debug names 2026-03-25 20:53:18 -04:00
Max Roncace 9c0110d0fa Map loader: Reset room/point values when region is changed 2026-03-25 20:53:18 -04:00
Max Roncace c6c6a6be33 Improve exp heap alloc failure message 2026-03-25 20:53:18 -04:00
Max Roncace 7d3795f745 Detect and replace NaNs in cXyz default ctor
This fixes intermittent segfaults due to invalid atan table lookups.

For some reason zero-initializing all cXyz objects causes issues, as
does initializing them with INFINITY or -INFINITY. However, at least
one of the possible crashes (in d_a_e_yg's search_ground_1) is
guaranteed to happen whenever a specific uninitialized cXyz contains
a NaN for x or z.

A possible explanation for these crashes not occurring on hardware might
be that the problematic objects happen to be placed at memory locations
that happen to never contain a NaN upon allocation, so the buggy code
was never caught. Further investigation would be needed to determine if
this is what's actually happening, though.
2026-03-25 20:53:18 -04:00
Max Roncace 816d853002 Fix ctb::data::TBlockData endian issues
This fixes some buggy cutscene camera positions and potentially
related crashes.
2026-03-25 20:53:18 -04:00
madeline 85d3b982b2 fixes #107 2026-03-25 12:05:50 -07:00
PJB3005 7944437dcc Merge branch 'main' into pjb-audio 2026-03-25 16:43:59 +01:00
Lurs 5fbf8e4a7f removing Z2Creature::startCreatureVoice stub 2026-03-25 09:35:16 +01:00
madeline 2618da7453 properly scale deku toad camera detection range 2026-03-24 18:34:12 -07:00
madeline c31fde8221 Merge branch 'main' of https://github.com/TakaRikka/dusk 2026-03-24 18:25:05 -07:00
madeline 5fd5882881 fix trimming viewport scissoring fixes #121 2026-03-24 18:25:01 -07:00
Lurs 47402f56c8 Merge branch 'main' of https://github.com/TakaRikka/dusk 2026-03-24 11:20:12 +01:00
Lurs 42a0fbbf44 Add toggle for water projection offset. Potentially fixes #77 2026-03-24 11:19:58 +01:00
madeline a1f78609d8 turn on background input 2026-03-23 23:17:26 -07:00
madeline 2a02ab7f09 fuck interrupts 2026-03-23 22:16:57 -07:00
PJB3005 a7fbdd6ece Add note about DUSK_SELECTED_OPT to README 2026-03-23 13:53:23 +01:00
PJB3005 0148d913e1 Add a bunch of missing imgui close buttons 2026-03-23 13:46:46 +01:00
PJB3005 946d1ae9b7 Threading cleanup: remove MallocAllocator stuff
Not necessary anymore now that JKRHeap is isolated
2026-03-23 13:34:20 +01:00