Commit Graph

1771 Commits

Author SHA1 Message Date
TakaRikka 793e09b95c aeralfos UB fix 2026-03-21 22:56:44 -07:00
TakaRikka 6d4f41b50d fix fopAcM_createItemFromEnemyID fix 2026-03-21 20:30:41 -07:00
TakaRikka 82172e2ee5 fix fopAcM_createItemFromEnemyID 2026-03-21 19:06:51 -07:00
TakaRikka 7ce4c444ec fix d_a_peru animation data 2026-03-21 18:05:29 -07:00
TakaRikka 9bc74b0226 various crash fixes 2026-03-21 05:07:51 -07:00
TakaRikka 0122e42e1e fix potential crash with heap name display 2026-03-21 01:50:20 -07:00
TakaRikka 2075da3347 Merge https://github.com/zeldaret/tp 2026-03-21 01:14:00 -07:00
TakaRikka f8cf545848 cleanup d_a_obj_wflag (#3135) 2026-03-21 00:56:27 -07:00
CraftyBoss 328102ef2e Merge branch 'main' of https://github.com/TakaRikka/dusk 2026-03-21 00:56:15 -04:00
CraftyBoss 955a70db1e more BE stuff, fix scissors for dmap/fmap 2026-03-21 00:56:01 -04:00
Max Roncace 2c7ae22167 Add more heap names for debug 2026-03-20 20:59:50 -04:00
Lurs e22c9da163 remove double swapping 2026-03-20 15:50:57 +01:00
Max Roncace 4a4a5724e1 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 4c613244c1 oops forgot to include something 2026-03-19 23:59:37 -04:00
CraftyBoss fe60866ffd fix StaffWork being too big for work buffer, increase mpTalkHeap size 2026-03-19 23:54:00 -04:00
TakaRikka d1b9b74271 fix kcol wall correct 2026-03-18 22:58:43 -07:00
TakaRikka ad43dee0e7 fix horse grass 2026-03-18 18:27:22 -07:00
TakaRikka 2ce36679f7 player info display tool 2026-03-18 17:29:08 -07:00
TakaRikka 46ac385a4d Merge branch 'main' of https://github.com/TakaRikka/dusk 2026-03-18 16:18:23 -07:00
Max Roncace cfc3a5f483 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 fbbf27e73d Update m_Do window viewport immediately on Aurora window resize
The framebuffer size flows into Aurora as follows:

Into JUTVideo:
  AURORA_WINDOW_RESIZED handler ->
  mDoGph_gInf_c::setWindowSize ->
  JUTVideo::setWindowSize
From JUTVideo -> dComIfG_play_c:
  fpcCt_Handler ->
  phase_4 ->
  dComIfGp_setWindow
From dComIfGp_play_c -> Aurora:
  mDoGph_Painter ->
  drawDepth2 ->
  GXSetTexCopySrc ->
  GXCopyTex ->
  aurora::gfx::resolve_pass (called by GXCopyTex)

The trouble is that 1) phase_4 is only called when creating a new scene/room,
and 2) even when it is called, mDoGph_Painter is executed before fpcCt_Handler
in the main loop so the new size isn't visible to aurora::gfx::resolve_pass
until one frame after it's set. This causes a crash due to the original size
being passed to CopyTextureToTexture despite the destination framebuffer now
being smaller.

As a workaround, we just cut out the whole middleman section and call
dComIfGp_setWindow immediately when we receive a resize event. This way the new
size is immediately visible to Aurora.
2026-03-18 12:46:56 -04:00
TakaRikka b202701757 Merge https://github.com/zeldaret/tp 2026-03-18 02:58:55 -07:00
TakaRikka bc7503cb70 fix push pull callback UB in other compilers (#3134) 2026-03-18 02:57:37 -07:00
TakaRikka cefd7e59a1 add cc collider view (broken color) 2026-03-18 01:25:42 -07:00
Max Roncace 5cb3a39f43 Merge remote-tracking branch 'decomp/main' 2026-03-18 01:56:47 -04:00
TakaRikka f64015ea38 cc debug work (#3133) 2026-03-17 22:48:37 -07:00
Max Roncace 6694c1b281 Fix a bunch of compiler warnings and document several more bugs (#3130) 2026-03-17 22:38:05 -07:00
Lurs 555bf395fb BE or un-BE, that is the question 2026-03-17 14:39:02 +01:00
Lurs fc73bc364a BE field_0x04 of "new" struct SizedGroup in src\d\actor\d_a_passer_mng.cpp 2026-03-17 13:25:27 +01:00
TakaRikka 4d4db83405 initial collision viewer 2026-03-17 05:17:43 -07:00
TakaRikka fa270c0fe9 Merge https://github.com/zeldaret/tp 2026-03-17 04:08:44 -07:00
TakaRikka 9f340b604b various d_bg debug cleanup / d_menu_window_HIO debug (#3132)
* various d_bg debug cleanup

* matching forward decl for compiler compatibility

* fix build
2026-03-17 03:44:11 -07:00
CraftyBoss 2b93d6d288 npc actor in screen check fix, fix dBgWKCol::RoofChk using wrong var for prism idx calc 2026-03-17 02:16:09 -07:00
CraftyBoss 1923636835 BE swap shop params, fix shop cursor projection, handle divide by zero in d_vibration, stub startLevelSound audio func 2026-03-16 22:01:46 -07:00
TakaRikka 023f0bec7a Merge pull request #96 from TakaRikka/ira-bloomtoggle
Toggle bloom from graphics menu
2026-03-16 17:03:39 -07:00
Irastris 51d6009d8d Toggle bloom from graphics menu 2026-03-16 19:54:44 -04:00
CraftyBoss b0982f2e92 fix uninitialized f32 causing crash in palace of twilight, add FPS to menu bar 2026-03-16 15:43:42 -07:00
TakaRikka 4a56d02dae Merge pull request #93 from TakaRikka/ira-crashfix1
JAUSoundTable-related crash fix
2026-03-16 14:27:43 -07:00
TakaRikka 80b3f8ee59 Merge pull request #94 from TakaRikka/bugfixes
Bugfixes for some issues (cXyz in savegame, collision and fading)
2026-03-16 14:21:49 -07:00
Max Roncace 8b2434a54d Fix crashes due to current texture not being set before loading (#61, #95) 2026-03-16 16:28:22 -04:00
Irastris 32a6126490 Use DUSK_AUDIO_DISABLED instead of TARGET_PC 2026-03-16 11:48:45 -04:00
Lurs 100be49dee Fixes #80
?
2026-03-16 08:35:35 +01:00
Lurs 2cb1d9e83c Fixes crash when entering the very first house 2026-03-16 08:35:35 +01:00
Max Roncace e62eeea8f9 Increase Scene2DHeap size (#90)
This fixes a crash when the game asks to save when leaving the ranch
after goats 1.
2026-03-15 23:28:34 -04:00
roeming ae0f8909a6 convert daPasserMng_c::mGroupTbl underlying data from bytes to daPasserMng_c::Group (#3129)
* daPasserMng_c::mGroupTbl underlying data to daPasserMng_c::Group

* move over to const groups

* templated solution that works on modern compilers + mwcc

---------

Co-authored-by: roeming <roeming@users.noreply.github.com>
2026-03-15 18:06:16 -07:00
TakaRikka 11c8eabaf2 work on controller config 2026-03-15 15:54:03 -07:00
Irastris d35d2f9af3 JAUSoundTable-related crash fix 2026-03-15 18:53:42 -04:00
Max Roncace 9bed8b863f Fix some Clang compile warnings 2026-03-14 18:37:18 -04:00
TakaRikka 5db0cb0cf8 some more imgui refactoring 2026-03-14 04:07:30 -07:00
Max Roncace efa629ca6a Add point selector to map loader (+ other loader UI improvements) 2026-03-14 01:20:27 -04:00