Commit Graph

3534 Commits

Author SHA1 Message Date
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
TakaRikka 364400d56f save editor wip 2026-03-23 05:01:42 -07:00
TakaRikka 68df239197 enable cs fades again 2026-03-22 00:20:37 -07:00
TakaRikka 58c406173a aeralfos UB fix 2026-03-21 22:56:44 -07:00
TakaRikka aefdbd9ab1 fix fopAcM_createItemFromEnemyID fix 2026-03-21 20:30:41 -07:00
TakaRikka 07e7348b32 fix fopAcM_createItemFromEnemyID 2026-03-21 19:06:51 -07:00
TakaRikka 7c03087600 fix d_a_peru animation data 2026-03-21 18:05:29 -07:00
TakaRikka ef0f9ef7fd various crash fixes 2026-03-21 05:07:51 -07:00
TakaRikka 1e79756929 fix potential crash with heap name display 2026-03-21 01:50:20 -07:00
TakaRikka 775dad0633 Merge https://github.com/zeldaret/tp 2026-03-21 01:14:00 -07:00
TakaRikka ae6caa77a0 cleanup d_a_obj_wflag (#3135) 2026-03-21 00:56:27 -07:00
CraftyBoss da132863e9 Merge branch 'main' of https://github.com/TakaRikka/dusk 2026-03-21 00:56:15 -04:00
CraftyBoss 9510c94454 more BE stuff, fix scissors for dmap/fmap 2026-03-21 00:56:01 -04:00
Max Roncace 3fe39464f1 Add more heap names for debug 2026-03-20 20:59:50 -04:00
PJB3005 324f651683 Fix block-unaligned loop decoding 2026-03-20 19:38:49 +01:00
PJB3005 36e90df60c Stop compiling more DSP stubs 2026-03-20 18:50:47 +01:00
PJB3005 0fbb62d7dc Stop compiling some DSP-related files.
Replace it all with stubs.
2026-03-20 18:05:17 +01:00
PJB3005 3f671b028d CLion? More like CLiedToMe 2026-03-20 17:54:37 +01:00
PJB3005 6443b9fded Audio system cleanup and comments 2026-03-20 17:51:42 +01:00
PJB3005 c940e04b56 struct JASWaveArc forward declaration fix 2026-03-20 17:51:09 +01:00
Lurs 0474db2fdf remove double swapping 2026-03-20 15:50:57 +01:00
Max Roncace 7ae18f3a9d Fix last argument in calls to dCamera_c::startEventCamera
The last argument is used as a char*, so we need to explicitly
pass nullptr instead of 0 to ensure it has the correct type.
This was causing crashes due to va_arg reading 8 bytes when only 4
were provided by the caller - if the out-of-bounds bytes are
non-zero, the null check fails and it continues pulling args from
beyond the argument buffer potentially triggering a segfault.
2026-03-20 02:51:29 -04:00
CraftyBoss 91d8e422ac oops forgot to include something 2026-03-19 23:59:37 -04:00
CraftyBoss 315f23b930 fix StaffWork being too big for work buffer, increase mpTalkHeap size 2026-03-19 23:54:00 -04:00
PJB3005 62df53299a Attempt to allow sample rates to be changed dynamically
Doesn't fix the walking bomb things :(
2026-03-19 20:28:15 +01:00
PJB3005 36beea1fa5 How did this compile ??? 2026-03-19 20:27:46 +01:00
PJB3005 6c3d9d2e38 Merge remote-tracking branch 'origin/main' into pjb-audio 2026-03-19 20:16:57 +01:00
PJB3005 44e8bf521b Load bearing include 2026-03-19 20:07:39 +01:00
PJB3005 355c4e9556 Move the audio dumping code to a define 2026-03-19 20:06:28 +01:00
PJB3005 34e0da4a00 Skip work in ReadChannelSamples if no new samples needed 2026-03-19 20:06:02 +01:00
PJB3005 bc1e2cb31f PCM16 support
Wanted this to test something, not sure if it's used in-game
2026-03-19 20:05:47 +01:00
CraftyBoss 1aaa023e74 add more be swap in J3DDeform data, stub TObject_sound::do_paragraph 2026-03-19 13:36:10 -04:00
PJB3005 c8866854c3 Stereo audio! 2026-03-19 17:47:11 +01:00
PJB3005 a2d00da978 More imgui stuff!!! 2026-03-19 16:04:18 +01:00
TakaRikka 6b74ee58d4 fix kcol wall correct 2026-03-18 22:58:43 -07:00
TakaRikka 86bad90a4f fix horse grass 2026-03-18 18:27:22 -07:00