Commit Graph

3692 Commits

Author SHA1 Message Date
PJB3005 bafde816eb Fix bad DSP assert
Fixes #150
Fixes #133
2026-03-29 18:22:12 +02:00
PJB3005 d0d906fab4 Add fullscreen checkbox to game menu 2026-03-29 18:21:36 +02:00
PJB3005 4091e3d155 Fix stub log memory leaking if imgui rendering is disabled 2026-03-29 18:21:27 +02:00
TakaRikka 2711229946 Merge pull request #145 from TakaRikka/26-03-29-pch
Use PCH to massively speed up compile time
2026-03-29 04:36:46 -07:00
TakaRikka 223ce87ea8 Merge pull request #144 from TakaRikka/fix/dvd-heap-exhaustion
Use separate heap for DVD decompression
2026-03-29 04:35:51 -07:00
PJB3005 b6577ffa2c Move 2026-03-29 13:35:26 +02:00
PJB3005 3a8a288ae7 Use PCH to massively speed up compile time
A change to a common header goes from 90s to 20s on my system. Crazy.
2026-03-29 13:24:59 +02:00
TakaRikka 2c80348892 Merge pull request #142 from TakaRikka/26-03-29-include-cleanup
26 03 29 include cleanup
2026-03-29 01:04:16 -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
PJB3005 3ad643f397 Don't include logging infrastructure in m_Do_graphic.h
This ends up wasting a ton of compile time because it pulls in all of Aurora's log infrastructure and fmt and all the noise into a thousand game files
2026-03-29 04:35:44 +02:00
PJB3005 c196ded104 Don't include weak_bss_1109_to_1009.h on PC
Not relevant to us.
2026-03-29 04:34:45 +02:00
PJB3005 95d6d24d31 Fix build without movie support 2026-03-29 03:50:37 +02:00
PJB3005 e18e8cc5dd Forgot to remove this 2026-03-29 03:31:36 +02:00
PJB3005 e827f19554 Give up on fetching libjpeg-turbo ourselves, rely on find_package and user providing it at build time 2026-03-29 03:29:51 +02:00
PJB3005 9738917a91 Clang compile fixes 2026-03-29 03:29:30 +02:00
PJB3005 2686c8dc81 Merge remote-tracking branch 'origin/main' into 26-03-28-movie-player 2026-03-29 03:16:24 +02:00
PJB3005 b09da82912 Allow movie support to be compiled out
(and therefore remove the libjpeg-turbo dependency)
2026-03-29 03:07:03 +02:00
PJB3005 23c6b78bc9 Properly clean up movie player threads
Pain and suffering.
2026-03-29 01:56:41 +01:00
PJB3005 70a5bb08a4 Comment 2026-03-29 01:54:49 +01:00
PJB3005 98da847bf5 OSThread fixes
OSCancelThread and OSDetachThread stubbed out cuz they're probably both broken

Code cleanup, unnecessary code copied from decomp removed, copy-paste reduced.

Don't immediately detach threads when creating them (what's the point??)

Fix OSJoinThread
2026-03-29 01:54:45 +01:00
PJB3005 b17b5fe405 Works a lot better now 2026-03-29 00:19:56 +01:00
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
PJB3005 bb92f955c8 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
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 228a305110 Show better button names in controller mapping UI
Requires https://github.com/encounter/aurora/pull/68
2026-03-27 19:52:09 +01: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