Commit Graph

564 Commits

Author SHA1 Message Date
PJB3005 9e298f9228 Expand heap debug ImGui
Now allows seeing all blocks in ExpHeaps and running heap integrity checks.
2026-03-31 21:18:25 +02:00
PJB3005 094d43c84f Heap allocation failure logs free blocks, always crashes even without DEBUG 2026-03-31 21:13:13 +02:00
PJB3005 d24d78f354 Fix heap corruption caused by JKRExpHeap::do_freeAll
Caused by a size that should've been sizeof(CMemBlock).

Simple way to repro was to open and close the full map on dpad, afterwards heap check would fail.
2026-03-31 21:11:19 +02:00
TakaRikka e912403918 Merge pull request #165 from TakaRikka/26-03-31-suspicious-assert
Disable suspicious assert causing cutscene crashes
2026-03-31 03:53:09 -07:00
Lurs c1e905ee74 Minimap fixes (needs change for intensityI8 in aurora) and some other BE fixes 2026-03-31 11:38:59 +02:00
TakaRikka 487c9b030e remove unneeded ospanic 2026-03-31 01:08:11 -07:00
Luke Street 2ce83d3026 Update GXSetArray usages (fixes & le arg) 2026-03-31 01:06:36 -06:00
PJB3005 0245ebf9b3 Disable suspicious assert causing cutscene crashes
From my reading of the code this assert is likely incorrect. This throws on cases where usize has a sane-looking value (the length of the pContent null-terminated string), and from my understanding of how the data is parsed, this length is needed to figure out the location of the next "paragraph".
2026-03-31 04:36:33 +02:00
PJB3005 01e88fbd85 Fix JUTGamePad stopPatternedRumbleAtThePeriod division by zero
Happens for me when loading a save in Death Mountain Twilight. Confirmed in Dolphin with the same save file.

PowerPC does not raise an exception on division by zero, so I assume this is an original game "bug"
2026-03-31 01:12:45 +02:00
TakaRikka adfa259ccb Merge https://github.com/zeldaret/tp 2026-03-30 02:21:28 -07:00
TakaRikka 885fad3312 Z2Audio player debug work / fix actor method returns (#3140)
* Z2Audio player debug work

* fix actor method returns

* wii build fix
2026-03-30 02:10:42 -07:00
TakaRikka 76c9548e4a d_path / d_vibration debug work (#3138)
* dpath debug

* dvibration debug

* d_meter2_info debug

* gcyl/gpsh debug
2026-03-29 16:43:00 -07:00
Max Roncace b309b6c6ad Use separate heap for DVD decompression
This fixes crashes when first entering North Faaron cave and
Renado's Sanctuary due to system heap exhaustion resulting from
multiple threads allocating on the heap at once.

There's some sort of weird contention going on - for some reason the
game gobbles up seemingly any amount of memory you throw at it when
the two threads are competing for heap space. Using a separate heap
in the async thread sidesteps the issue.
2026-03-29 01:20:25 -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 81d0312f2b Merge branch 'main' into pjb-audio 2026-03-27 17:18:11 +01:00
PJB3005 abfe917008 Add replacement helpers for strncpy[_s]
Portable without vulnerabilities.
2026-03-27 16:54:51 +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
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
PJB3005 2240c04cec Fix shutdown crash 2026-03-26 15:03:48 +01: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 c6c6a6be33 Improve exp heap alloc failure message 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
PJB3005 7944437dcc Merge branch 'main' into pjb-audio 2026-03-25 16:43:59 +01: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 36e90df60c Stop compiling more DSP stubs 2026-03-20 18:50:47 +01:00
PJB3005 c940e04b56 struct JASWaveArc forward declaration fix 2026-03-20 17:51:09 +01:00
PJB3005 6c3d9d2e38 Merge remote-tracking branch 'origin/main' into pjb-audio 2026-03-19 20:16:57 +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 a2d00da978 More imgui stuff!!! 2026-03-19 16:04:18 +01:00
Max Roncace 49080f6119 Move aurora_begin_frame/aurora_end_frame calls to main loop
This fixes an issue when using SDL's X11 backend due to Dusk
attempting to render ImGui menus without an active frame.
2026-03-18 16:33:03 -04:00
Max Roncace bb061a1225 Merge remote-tracking branch 'decomp/main' 2026-03-18 01:56:47 -04:00
Max Roncace 8578874254 Fix a bunch of compiler warnings and document several more bugs (#3130) 2026-03-17 22:38:05 -07:00
Max Roncace f17c134aff Fix vertex data not being populated for non-textured models
This affects models loaded by d_a_bg such as Stage/bmde/model2.bmd.
2026-03-18 00:25:38 -04:00
PJB3005 c2879e735c Disable JASAiCtrl safety kill code
Doesn't work properly and causes weird behavior
2026-03-16 23:35:57 +01:00
TakaRikka 61d2ba1e33 Merge pull request #93 from TakaRikka/ira-crashfix1
JAUSoundTable-related crash fix
2026-03-16 14:27:43 -07:00
PJB3005 3bab77b59d Fix CUTOFF_TO_IIR_TABLE OOB 2026-03-16 16:48:45 +01:00
Irastris 451ebcbb3c Use DUSK_AUDIO_DISABLED instead of TARGET_PC 2026-03-16 11:48:45 -04:00
PJB3005 6f2b730143 BE fix MixConfig 2026-03-16 16:48:38 +01:00
PJB3005 fae09942a4 Fix setBusConnect OOB for "dolby mode" channels 2026-03-16 16:48:11 +01:00
PJB3005 743e5b11d8 Fix NullTexData too small 2026-03-16 15:44:36 +01:00
Lurs f33923dc56 Fixes #82 2026-03-16 08:35:34 +01:00
Irastris ee2079bcf9 JAUSoundTable-related crash fix 2026-03-15 18:53:42 -04:00
PJB3005 8b63858d9d Oops 2026-03-15 18:41:48 +01:00