Commit Graph

588 Commits

Author SHA1 Message Date
madeline 744e29f401 optimize dsp by 27X 2026-04-09 08:25:06 -07:00
Jeffrey Crowell 8e797829f9 Fix Crash at the end of the Armogohma cutscene #282
zero stack buffers in JASSeqParser::cmdPrintf on PC builds

use AVOID_UB instead of TARGET_PC
2026-04-08 15:39:42 -04:00
madeline 1a27ea4ad9 add p1 == 0 logic 2026-04-07 22:15:19 -07:00
madeline 7b4d9ce807 frame usage debug info 2026-04-07 22:11:50 -07:00
PJB3005 9cf6f3497d Fix JUTResFont performance
Just store the GXTexObjs in a separately allocated hashmap, so they can be persisted cross-frame. Easy.

Fixes #227
2026-04-07 21:43:38 +02:00
PJB3005 208f2aba9f Cleanly shut down JKRDecomp thread
Properly join the thread to ensure it's shut down before we try to exit.

Fixes #268
2026-04-07 20:06:52 +02:00
madeline 1a0f490dfd Merge branch 'main' of https://github.com/TakaRikka/dusk 2026-04-06 20:36:01 -07:00
madeline 0084ccf5ba fix basically all known audio bugs fixes #148 fixes #146 fixes #130 2026-04-06 20:35:54 -07:00
Luke Street 7d9d041b7d Update aurora & fixes for OS header changes 2026-04-06 21:25:50 -06:00
Lurs abd94ee1ad double heaps to fix Midna's eye (#106) and various other error messages I got.
Also updating aurora.
2026-04-06 21:18:28 +02:00
madeline ad50d549a8 turbo keybind tool 2026-04-05 11:47:49 -07:00
madeline a9a71331d6 fix .clangd on vscode 2026-04-04 22:22:18 -07:00
TakaRikka 4e91608fe8 Merge pull request #215 from TwilitRealm/reverb-wip
Audio FX reverb proof of concept
2026-04-04 21:38:01 -07:00
madeline a0c361c6c9 reverb proof of concept 2026-04-04 01:38:28 -07:00
Max Roncace 2b71c7f863 Fix compile error in J3DMaterialFactory_v21 2026-04-04 01:41:04 -04:00
Max Roncace bc5c5ceeb7 Fix a couple more BE issues in J3DMaterialFactory_v21 2026-04-04 01:36:16 -04:00
madeline 9a8a312081 Merge branch 'main' of https://github.com/TakaRikka/dusk 2026-04-03 22:33:41 -07:00
madeline f340def9af fix getDopplerPower fixes #213 2026-04-03 22:33:38 -07:00
Max Roncace ef35ae882b Fix crashes when entering Henna's shop 2026-04-04 01:30:24 -04:00
Luke Street 9b7d5bd261 Add JKRThread::Run return value 2026-04-01 21:01:59 -06:00
Luke Street 2e920d510d Allow threads to gracefully shutdown 2026-04-01 18:30:12 -06:00
Pieter-Jan Briers 007d787cfd Merge branch 'main' into 26-03-28-movie-player 2026-04-01 15:15:08 +02:00
PJB3005 e61d7a19b8 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 4fd8d26bab Heap allocation failure logs free blocks, always crashes even without DEBUG 2026-03-31 21:13:13 +02:00
PJB3005 aea7d97bb5 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 57933f7150 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 bf07cf4c5f Minimap fixes (needs change for intensityI8 in aurora) and some other BE fixes 2026-03-31 11:38:59 +02:00
TakaRikka 53c915d627 remove unneeded ospanic 2026-03-31 01:08:11 -07:00
Luke Street b109aa0273 Update GXSetArray usages (fixes & le arg) 2026-03-31 01:06:36 -06:00
PJB3005 3d81e633ff 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 d00104285b 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 4a7ea9d85b Merge https://github.com/zeldaret/tp 2026-03-30 02:21:28 -07:00
TakaRikka 5685fa58c6 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 cb6ee4b21e 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 d2c5614a47 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
PJB3005 bf5032b5fa Merge remote-tracking branch 'origin/main' into 26-03-28-movie-player 2026-03-29 03:16:24 +02: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
TakaRikka adba1a3055 Merge pull request #135 from TakaRikka/pjb-audio
Audio
2026-03-27 20:36:06 -07:00
Irastris 3f443d6653 Fix MSVC RelWithDebInfo/Release compilation after upstream merge 2026-03-27 23:28:24 -04:00
PJB3005 248f3945b4 Merge branch 'main' into pjb-audio 2026-03-27 17:18:11 +01:00
PJB3005 0178ab35b3 Add replacement helpers for strncpy[_s]
Portable without vulnerabilities.
2026-03-27 16:54:51 +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
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
PJB3005 e2923d3745 Fix shutdown crash 2026-03-26 15:03:48 +01: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 c92ebfe5f1 Improve exp heap alloc failure message 2026-03-25 20:53:18 -04:00