Commit Graph

2813 Commits

Author SHA1 Message Date
PJB3005 c28150be40 Works a lot better now 2026-03-29 00:19:56 +01:00
PJB3005 76131c071f Make the movie player work somewhat.
THPs are *almost* just a bunch of JPEGs so the TL;DR is BE fixes and replacing the decoding with libjpeg-turbo.

Needs changes to thp.h which should be removed from Aurora, will do that later.

Also audio not implemented yet.
2026-03-28 18:29:58 +01:00
PJB3005 248f3945b4 Merge branch 'main' into pjb-audio 2026-03-27 17:18:11 +01:00
PJB3005 4b30cd7ddb 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 0e1718e80d Do use strncpy in SafeStringCopy
I figured out how to mute the warnings.
2026-03-27 17:16:41 +01:00
PJB3005 96a61ed0b6 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 0178ab35b3 Add replacement helpers for strncpy[_s]
Portable without vulnerabilities.
2026-03-27 16:54:51 +01:00
PJB3005 c9151fca4a Remove SDL mixer
Didn't end up using it.
2026-03-27 15:10:31 +01:00
PJB3005 967ea0c939 Audio channels are sorted with a stable sort 2026-03-27 14:54:27 +01:00
PJB3005 b01581b043 Show new audio channels as green on the debug tool 2026-03-27 14:54:17 +01:00
PJB3005 6073a0c3f0 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 625a94dcff Replace ugly cast in dusk::audio::DspRender 2026-03-27 13:35:33 +01:00
PJB3005 2e441c9156 Skip oscillator channels properly I think 2026-03-27 12:42:37 +01:00
Lurs 1faded3faf fix stuck note e.g. in Hyrule field 2026-03-27 12:23:41 +01:00
Max Roncace 04df9d5397 Use stubs instead of including debug files for last upstream merge 2026-03-27 02:32:20 -04:00
Max Roncace 12966c3b12 Merge remote-tracking branch 'decomp/main' 2026-03-27 02:02:24 -04:00
YunataSavior 37bccaa011 Add "Selected Layer" to Map Loader 2026-03-26 20:18:18 -07:00
Max Roncace 36d89c7bbf object-particle debug almost matching (#3136) 2026-03-26 18:56:04 -07:00
Roman Sandu 0fc019dcfa JAHostIO and friends (#3131) 2026-03-26 18:54:07 -07:00
Max Roncace 053392f440 Fix UB in search_ground_1 in d_a_e_yg
This could cause a crash and was previously fixed by 3aa39867, 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 e2923d3745 Fix shutdown crash 2026-03-26 15:03:48 +01:00
TakaRikka 3f90d11e95 Merge branch 'main' of https://github.com/TakaRikka/dusk 2026-03-26 04:52:52 -07:00
TakaRikka 59d689724c save editor inventory menu wip 2026-03-26 04:52:09 -07:00
Lurs 72e2c71de6 Fix audio memory leak 2026-03-26 11:02:24 +01:00
YunataSavior 31e93a3e7c Fix "switch case passes initialization" in d_a_peru 2026-03-25 21:28:58 -07:00
Max Roncace 105e856d4f 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 3b6582f1a2 Add even more heap debug names 2026-03-25 20:53:18 -04:00
Max Roncace c5d1ceffff Map loader: Reset room/point values when region is changed 2026-03-25 20:53:18 -04:00
Max Roncace c92ebfe5f1 Improve exp heap alloc failure message 2026-03-25 20:53:18 -04:00
Max Roncace 3aa39867a0 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 c49b5ad857 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 bfcfb3622e fixes #107 2026-03-25 12:05:50 -07:00
PJB3005 7ac96d0251 Merge branch 'main' into pjb-audio 2026-03-25 16:43:59 +01:00
Lurs 3ad7e70963 removing Z2Creature::startCreatureVoice stub 2026-03-25 09:35:16 +01:00
madeline 99786174cb properly scale deku toad camera detection range 2026-03-24 18:34:12 -07:00
madeline 9b9ea69dbc Merge branch 'main' of https://github.com/TakaRikka/dusk 2026-03-24 18:25:05 -07:00
madeline d6f2b1c899 fix trimming viewport scissoring fixes #121 2026-03-24 18:25:01 -07:00
Lurs 96c5ac2b23 Merge branch 'main' of https://github.com/TakaRikka/dusk 2026-03-24 11:20:12 +01:00
Lurs 8b66a4e648 Add toggle for water projection offset. Potentially fixes #77 2026-03-24 11:19:58 +01:00
madeline ed27528728 turn on background input 2026-03-23 23:17:26 -07:00
madeline 913619a930 fuck interrupts 2026-03-23 22:16:57 -07:00
PJB3005 acf3844f1f Add note about DUSK_SELECTED_OPT to README 2026-03-23 13:53:23 +01:00
PJB3005 ff7a80c7b4 Add a bunch of missing imgui close buttons 2026-03-23 13:46:46 +01:00
PJB3005 d5786356e2 Threading cleanup: remove MallocAllocator stuff
Not necessary anymore now that JKRHeap is isolated
2026-03-23 13:34:20 +01:00
TakaRikka 4a2294c40b save editor wip 2026-03-23 05:01:42 -07:00
TakaRikka b0e3a4e0d2 enable cs fades again 2026-03-22 00:20:37 -07:00
TakaRikka 793e09b95c aeralfos UB fix 2026-03-21 22:56:44 -07:00
TakaRikka 6d4f41b50d fix fopAcM_createItemFromEnemyID fix 2026-03-21 20:30:41 -07:00
TakaRikka 82172e2ee5 fix fopAcM_createItemFromEnemyID 2026-03-21 19:06:51 -07:00
TakaRikka 7ce4c444ec fix d_a_peru animation data 2026-03-21 18:05:29 -07:00