Commit Graph

64 Commits

Author SHA1 Message Date
PJB3005 3f652f17d5 appname.hpp -> app_info.hpp 2026-04-05 19:20:10 +02:00
PJB3005 0b04ef6463 Set Aurora config path 2026-04-05 19:03:26 +02:00
PJB3005 08038240e0 Merge remote-tracking branch 'origin/main' into 26-04-04-config 2026-04-05 15:13:04 +02: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
MelonSpeedruns 94460a763f Merge branch 'main' into feature/no-low-hp-sound 2026-04-04 21:50:00 -04:00
TakaRikka eaa32f894d Merge pull request #218 from TakaRikka/feature/transform-anywhere
Can transform Anywhere + Refactored checks to see if you can Quick Transform
2026-04-04 15:59:12 -07:00
TakaRikka 5bc6aa1c95 Merge pull request #217 from TakaRikka/feature/no-miss-animation
No Climbing Miss Animation toggle, similar to TPHD
2026-04-04 15:54:57 -07:00
PJB3005 4235a5fddc Merge remote-tracking branch 'origin/main' into 26-04-04-config 2026-04-05 00:12:17 +02:00
PJB3005 ae42e75e1b Implicit conversion operator is probably a good idea tbh. 2026-04-04 23:00:33 +02:00
PJB3005 63422ecdd1 I realize that's an important comment for C++ 2026-04-04 22:49:51 +02:00
PJB3005 a00fb1c05c Config system v1
Roughly inspired by what I've learned from my work on Space Station 14, without some of the unnecessary cruft and complexity.

Implementation is relatively simple once I figured out all the template order shenanigans.
2026-04-04 22:47:48 +02:00
MelonSpeedruns 9f08b7054f No Low HP Sound Enhancement 2026-04-04 14:47:39 -04:00
MelonSpeedruns afbb41bd37 Can transform anywhere + Refactored checks to see if you can Quick Transform 2026-04-04 14:30:42 -04:00
MelonSpeedruns f0d6d2de68 No Climbing Miss Animation toggle, similar to TPHD 2026-04-04 11:59:08 -04:00
MelonSpeedruns cf022a9a55 Non-Stop Midna's Lament Audio Enhancement 2026-04-04 11:36:15 -04:00
TakaRikka c0f553cb12 hd faster tears toggle 2026-04-04 06:02:23 -07:00
TakaRikka 9a1eec4abc quick climbing qol, difficulty options 2026-04-04 03:52:28 -07:00
TakaRikka 6b5d39d94e no sword recoil enhancement 2026-04-04 02:59:53 -07:00
TakaRikka c7ad544b19 couple of hd qol toggles 2026-04-04 02:37:59 -07:00
madeline a0c361c6c9 reverb proof of concept 2026-04-04 01:38:28 -07:00
Max Roncace 50d06229c1 Add tweak to enable/disable TV settings screen 2026-04-04 00:32:17 -04:00
Max Roncace dc558f94df Move hotkey bindings to separate header 2026-04-04 00:16:44 -04:00
Max Roncace 3b895609d3 Refactor Dusk settings out to common interface used by game and UI code 2026-04-04 00:16:44 -04:00
Pieter-Jan Briers 007d787cfd Merge branch 'main' into 26-03-28-movie-player 2026-04-01 15:15:08 +02:00
PJB3005 1146c30ec0 More GX debug groups 2026-04-01 01:11:28 +02:00
PJB3005 bf5032b5fa Merge remote-tracking branch 'origin/main' into 26-03-28-movie-player 2026-03-29 03:16:24 +02:00
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
TakaRikka adba1a3055 Merge pull request #135 from TakaRikka/pjb-audio
Audio
2026-03-27 20:36:06 -07:00
PJB3005 c9a1f02f55 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 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 0178ab35b3 Add replacement helpers for strncpy[_s]
Portable without vulnerabilities.
2026-03-27 16:54:51 +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 e2923d3745 Fix shutdown crash 2026-03-26 15:03:48 +01:00
PJB3005 ebebb1af34 Audio system cleanup and comments 2026-03-20 17:51:42 +01:00
PJB3005 dca0964f27 Assign names to threads
Visible in debuggers etc
2026-03-14 14:16:49 +01:00
PJB3005 002a34f18b We have audio!! 2026-03-14 14:03:10 +01:00
PJB3005 0c993fd7ed Basic audio system start 2026-03-14 14:02:13 +01:00
madeline 23b2edafdf enable audio 2026-03-14 13:49:16 +01:00
Max Roncace efa629ca6a Add point selector to map loader (+ other loader UI improvements) 2026-03-14 01:20:27 -04:00
qwertyquerty 6be51c09c5 Ongoing gameplay dev (#49)
* launch.json cwd

* bodge to load gci for testing

* stub card stat

* gameplay bodges

* viewport, ub fixes

* add release with debug info cmake variant

* be fixes, sound stub

* viewport h

* d_msg_flow BE

* be fopAcM_createItemFromEnemyID

* update launch configuration to use iso

* more audio stubs

* Attempt to set viewport and get messages for brightness check

* skip opening scene again, fixed JMessage::TResourceContainer::TCResource::Do_destroy

* add guards for viewport changes

* moar endian swapping to get Link sitting in PROC_OPENING_SCENE and for dialogues

* BE d_msg_class i_data

* stub bgm start

* fix div by 0 error (for now)

* TEMP_BROKEN in d_menu_ring

* REQUIRES_GX_LINES

* properly stub renderingAmap::draw with REQUIRES_GX_LINES

* better stubbing outside of stubs

* fix event data getting swapped multiple times

* evil draw vp fix

* Stub log imgui

This redirects all spammy logs to an imgui window that is cleared per frame.

This fixes the serious performance dip of the logging, and makes the regular log readable.

* Oops move those optimization changes I accidentally committed behind a flag

DUSK_SELECTED_OPT

* gx_line macro in map

* fix audio stubbing

* switch to CARD API aurora impl

* remove kabufuda from link libs

* refactor imgui stuff and add input viewer

* merge stub log with refactor

* accidentally committed a metaforce header shh

* basic map loader

* ImGuiConsole: Add missing <thread> include

* you may now play as luigi (you may now load stages with bridges)

* bloom fix

* bloom leak fix

* cloud shadow fix

* add soft reset button to imgui menu

* if it broke dont not fix it

* i swear i committed this

* BE swap indMtx in JPAResource::setPTev

* wnark ct fix

* frsqrte implementation from kinoko

* Fix Clang compile error in JAISeq::prepare_getSeqData_

* Add endian conversions to dMsgFlow_c::getInitNodeIndex

This fixes a freeze when Fado tries to stop you from leaving the
starting area.

* Add RAII GXTexObj wrapper; fix almost all leaks

* Update aurora for indirect texturing

* Update aurora for CARD fix

* Fix Clang build

* More d_msg_flow endian fixes

Fixes softlock when trying to talk to Fado and possibly other NPCs.

* no frame limiter

* get pause menu working

* proper frame limiting

* particle pointer size fix

* improve map loader a bit

---------

Co-authored-by: Jasper St. Pierre <jstpierre@mecheye.net>
Co-authored-by: TakaRikka <takarikka@outlook.com>
Co-authored-by: CraftyBoss <talibabdulmaalik@gmail.com>
Co-authored-by: Luke Street <luke@street.dev>
Co-authored-by: Lurs <l_werdes@gmx.de>
Co-authored-by: PJB3005 <pieterjan.briers+git@gmail.com>
Co-authored-by: tgsm <doodrabbit@hotmail.com>
Co-authored-by: Max Roncace <me@caseif.net>
Co-authored-by: Phillip Stephens <antidote.crk@gmail.com>
2026-03-12 04:01:03 -07:00
Pieter-Jan Briers cb9dd972fd Pjb dev 3 (#48)
* Undo array allocation changes from #43

Doesn't work

* Expand dmeter heap sizes, give names

* Fix manual operator delete call in resource.cpp

* Disable map rendering for now

Aurora can't handle lines

* Re-enable assert heap on DVD thread

Should be fine?

* Some basic debug groups with the new Aurora API

* Allow Aurora backend to be set via CLI

* Give materials debug groups

* More debug groups

* JKRHeap separation: array edition

Pain
2026-03-11 13:40:21 -07:00
Luke Street 3ce7aa3c9f Aurora DVD support (#43)
* Aurora DVD support

* Remove commented code

* Restore STUB_LOG
2026-03-09 00:33:04 -07:00
madeline 79938769fc HEAP_SIZE macro 2026-03-08 21:13:45 -07:00
madeline 6858b46a04 byte swap d_save 2026-03-08 21:10:27 -07:00
Pieter-Jan Briers 00ed9402cd 26 02 27 pjb dev 2 (#41)
* fix kankyo UB

* Fix TEV Stage DL writing

BE issue

* BE Fixes in materials/shapes

* Move to Aurora GD impl

* JUTDataFileHeader

* j3d: load vertex and texture not through GD

* Endian swap vertex data (mostly)

* Just exit(0) when closing the game

Fix crashes :godo:

* fix fopAcM_ct_placement and remove memcpy

* J3D: track vertex arrays correctly, swap work

* fix visibility, turn off overridden new/delete when we call into aurora

* event: cut name be

* Default window improvements

Double size, allow OS to decide position

* survive TParse::parseHeader_next

* color swap fix

* swap endian/fixes oob function pointer

* Remove GXGetViewportv stub

Aurora has it now

* Set array pointers via GD again

Relies on https://github.com/encounter/aurora/pull/35

* Let Aurora decide graphics backend

* disable procbar drawing

* Fix TColor endianness conversion issues

Fixes the wrong color for the flashing logo

* cam param swap

* simplify vtx loading, mat/amb color fix

* endian swap stb/fvb data

* aurora stat changes

* fix storage buffer crash

dont unnecessarily reassign vertex buffers in a way that forces aurora to recache things

* set bgobj spec fix

* add camera debug, endian swap more stb data, d_a_bg_obj::spec_data_c swapped

* JKRExpHeap: fix bad allocator slowdown

* solid tex

* texture caching

* log level

* fix window aspect ratio, disable bloom, endian swap camera type data

camera is now actually playing opening cutscene!!!!

* add GXDestroyTexObj to a couple stack init'd GXTexObjs, remove some diag printfs

* endian swap joint weight envelope data

* move to dusk config

* verbose arg errors

* better stub logging (for now)

* less logging, more BE

* more stubbing, move logging stuff around

* move all logging to aurora logging

* fix STUB_LOG, __FUNCTION__ isn't a string literal, wasn't building as it
was.

* update aurora

* fix heap alignment mismatch and always head align for now

* prevent them from fucking up my shit

* forward jut warning to DuskLog

* remove report logging

* maybe and i must emphasize maybe fix JMessage parsing

* this was a dumb idea

* preserve negative alignment for JKRHeap

* use normal free on macos and linux

* ^

* fix JMAHermiteInterpolation c impl

* endian swap J2DScreen mColor (oops)

* swap more J3D anim data, remove weird pointer addr check in J3DMaterial getMaterialAnm

* typo fix

* Fix aligned_alloc() size issues on POSIX

aligned_alloc() requires its input size to be a multiple of alignment. This wasn't being upheld so there were allocation failures in init code that made the game fail to start outside Windows.

Also just cleaned up some of this code a bit and removed fallback cases that *shouldn't* get hit.

* _Exit instead of exit()

Seriously I don't want destructors to run. Let the OS reclaim that shit.

* Reapply "Isolate JKRHeap operator overloads" (#39)

This reverts commit 78d4169929.

* Fix some oopsies

* Fix hardcoded pointer size in JUTCacheFont::allocArray

* More operator overload fixes

Add void template specialization for jkrDelete

Add new[] placement overload. Apparently.

* Fix delete macros on nullptr

TIL C++ allows that.

* fix delete[]

* fix new(std::nothrow) overload

* fix avoid ub

* swap remaining anim data needed for title logo

* get rid of op 7

* move aurora_end_frame to correct spot

* juttexture destroy tex

* j2d animation be

* shutdown crash

* link warp material fix

* mDoExt_3DlineMat1_c fix

* hacky keyboard controls

* endian swap J2DResReference, add kb_pad to files.cmake

* fix some missing endian swaps in J2D, remove addr alignment check

* Remove heap unsetting in aurora calls

Never worked properly and not the right solution even if it did

* Don't print in DC stubs

They're fine to never implement

* Fix alignment stuff again

* Compile GF from dolphin lib

Doesn't seem to break anything and shuts up some stub warnings

* j3dtexture tlut obj fix

* addTexMtxIndexInDL fix

* don't recreate null tex data every frame

* the actual fix i wanted to push

* its kinda fakematch city over here

* insert hte efb copy

* limited window size / viewport support

* IsDelete FIX

---------

Co-authored-by: madeline <qwertytrogi@gmail.com>
Co-authored-by: Jasper St. Pierre <jstpierre@mecheye.net>
Co-authored-by: Jeffrey Crowell <jeff@crowell.biz>
Co-authored-by: TakaRikka <takarikka@outlook.com>
Co-authored-by: CraftyBoss <talibabdulmaalik@gmail.com>
Co-authored-by: Lurs <l_werdes@gmx.de>
2026-03-08 15:27:15 -07:00
PJB3005 d17066acc4 BE<S16Vec> support 2026-03-02 19:53:45 +01:00
PJB3005 798caf079a Merge remote-tracking branch 'origin/main' into 26-02-27-pjb-dev-2 2026-03-01 15:08:52 +01:00
PJB3005 991ff43a8b My IDE lied to me 😭 2026-03-01 14:53:00 +01:00