Commit Graph

57 Commits

Author SHA1 Message Date
Luke Street cf8ab52f55 Fix ATTRIBUTE_ALIGN placement 2026-08-05 21:16:06 -06:00
Pieter-Jan Briers 2c9f814ec6 Make JASCalc memory helpers just use memcpy/memset (#2258) 2026-08-03 21:37:36 -06:00
Luke Street a6f059827b Game ABI / headers refactoring (#2215)
* Game ABI / headers refactoring

* Delete dusk/imgui.h
2026-07-14 19:24:08 -06:00
Luke Street eed14acdc6 Annotate all data with DUSK_GAME_DATA (#2214)
The hope of auto-importing data via lld MinGW
+ pseudo_reloc is now dead thanks to ARM64,
so I just wrote a script to go annotate every
exported data symbol in the game instead.
2026-07-14 13:49:21 -06:00
Pieter-Jan Briers a6376368ee String safety (#1548)
* Array size UB fixes

* Fix ShieldD

* Remove (almost) all unsafe strcpy calls

Bunch of macros. C arrays are easy enough and just need a different call. For various cases where a char* is passed around bare, I've made a TEXT_SPAN macro that can store a length too for bounds checking.

* Move crash handling in safe string operations to separate TU

* strcat safe version

* sprintf made safe too

* Fix compile
2026-05-24 10:43:00 -06:00
TakaRikka 1c5686f71b Merge pull request #616 from TwilitRealm/HRTF
Emulate Surround option
2026-05-01 22:51:25 -07:00
madeline 93c8bcc210 hrtf 2026-05-01 13:04:08 -07:00
Jasper St. Pierre ce9a5c06d5 heap name 2026-04-30 22:19:19 -07:00
Pheenoh fcfcb35929 fix JAISeqMgr beginStartSeq_ to check free memory before allocation 2026-04-18 19:53:40 -06:00
CraftyBoss ec091ac3af change ANDROID define to TARGET_ANDROID 2026-04-14 03:18:21 -07:00
CraftyBoss 627cf559c9 building for android impl
currently builds a "Metaforce" apk, will need to change name of course. Running the apk using Android Studio's emulator can get in game, however running on a samsung phone does not seem to work.
2026-04-10 03:53:57 -07:00
PJB3005 3bcd46dc30 Add Tracy stuff 2026-04-09 18:47:34 +02:00
Jeffrey Crowell a94fa51c80 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 4e12f7bb95 fix basically all known audio bugs fixes #148 fixes #146 fixes #130 2026-04-06 20:35:54 -07:00
Luke Street 7642d72a52 Allow threads to gracefully shutdown 2026-04-01 18:30:12 -06: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
PJB3005 2240c04cec Fix shutdown crash 2026-03-26 15:03:48 +01:00
PJB3005 36e90df60c Stop compiling more DSP stubs 2026-03-20 18:50:47 +01:00
PJB3005 6c3d9d2e38 Merge remote-tracking branch 'origin/main' into pjb-audio 2026-03-19 20:16:57 +01:00
PJB3005 a2d00da978 More imgui stuff!!! 2026-03-19 16:04:18 +01: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
PJB3005 c2879e735c Disable JASAiCtrl safety kill code
Doesn't work properly and causes weird behavior
2026-03-16 23:35:57 +01: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 fae09942a4 Fix setBusConnect OOB for "dolby mode" channels 2026-03-16 16:48:11 +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
PJB3005 96dc827011 More minor naming 2026-03-15 17:59:11 +01:00
PJB3005 d759bcffbd Names mixed in with some BE fixes 2026-03-15 01:23:11 +01:00
PJB3005 e86aebfcd8 Disable debug code in JASAramStream 2026-03-14 16:44:04 +01:00
PJB3005 602f69673b Don't make the DAC rate weird 2026-03-14 14:22:33 +01:00
PJB3005 7eaabe6ecc We have audio!! 2026-03-14 14:03:10 +01:00
PJB3005 ca467e62ab More documenting for JASAramStream and JASDSPInterface 2026-03-14 14:03:09 +01:00
PJB3005 9d1deb2a37 Fix another JASTaskThread::allocCallStack size 2026-03-14 14:02:15 +01:00
PJB3005 91069ae3b2 Fix incorrect JASChannel size for JASPoolAllocObject_MultiThreaded
Despair
2026-03-14 14:02:14 +01:00
PJB3005 66e2709290 Some more names 2026-03-14 14:02:14 +01:00
PJB3005 18a63d06bd Fix DVD command sizes 2026-03-14 14:02:14 +01:00
PJB3005 3c83c98887 Fix BE in JASAramStream::load 2026-03-14 14:02:14 +01:00
PJB3005 9dbade65d4 Basic audio system start 2026-03-14 14:02:13 +01:00
PJB3005 d77bceb821 nop JASDsp::releaseHalt 2026-03-14 14:02:13 +01:00
PJB3005 e07fbef818 Block DSP commands, no DSP emulated 2026-03-14 14:02:13 +01:00
PJB3005 45e55f1384 Constant for DSP_SUBFRAME_SIZE 2026-03-14 14:02:13 +01:00
PJB3005 4f09fc65ac Remove JASAudioThread race condition fixing code
I'm not planning on using JASAudioThread anymore
2026-03-14 14:02:13 +01:00
PJB3005 a0cf0a3c8c Fix JASTaskThread::allocCallStack on 64-bit 2026-03-14 13:49:16 +01:00
madeline 213d193b9d fix createBasicBank (for now) 2026-03-14 13:49:16 +01:00
madeline 29dc57f91b stub dsp send commands for now 2026-03-14 13:49:16 +01:00
PJB3005 303a21a4a3 JAudio field name/comment pass
HUGE thanks to XAYRGA for their work documenting JAudio file formats
2026-03-14 13:45:55 +01:00
Max Roncace 9fff8d45a1 Fix multiple classes being inappropriately zero-initialized via JKR_NEW* (#70)
This might also fix #71 and #72.
2026-03-13 02:50:53 -04:00
qwertyquerty 767ba3bb14 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 <2795933+Lurs@users.noreply.github.com>
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