Commit Graph

93 Commits

Author SHA1 Message Date
CraftyBoss 97f1fdf297 change ANDROID define to TARGET_ANDROID 2026-04-14 03:18:21 -07:00
CraftyBoss 18b0d9dd28 Merge remote-tracking branch 'origin/main' into android-building
# Conflicts:
#	CMakeLists.txt
2026-04-14 01:03:50 -07:00
Luke Street 1d0c8ec3be Fix DUSK_VERSION_STRING on tag commits 2026-04-14 01:13:43 -06:00
Luke Street c6d58afd94 Integrate Sentry crash reporting for public builds 2026-04-14 00:43:56 -06:00
madeline 6015fdb2b7 state share feature 2026-04-13 21:55:55 -07:00
Luke Street c3524325e4 Add Win32 resources, icon & copy DLLs/res to install 2026-04-13 20:27:59 -06:00
CraftyBoss c9661daf61 Merge remote-tracking branch 'origin/main' into android-building 2026-04-12 20:02:23 -07:00
Jasper St. Pierre bc01d907dd e&c 2026-04-12 18:37:23 -07:00
CraftyBoss 417360b1ce 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
Luke Street 04212b5b6c Support shared libjpeg-turbo 2026-04-09 19:37:42 -06:00
qwertyquerty 229c8ed88f CI/CD, CMake improvements, more targets, fix gcc (#258)
* CI attempt

* syntax

* fix cmake for linux

* fix include directories and merge main

* fix PDB fighting

* fix gcc compiling

* fix SSCACHE for windows

* try and fix gcc

* more CI presets

* remove the android target for now

* bump cmake minimum to fix debug information format

* yet another attempt at fixing gcc

* yet another attempt at fixing gcc

* better CI matrixing

* yet another attempt at fixing GCC

* fix arm

* fix CI

* placeholder icons

* compile dawn from source for windows arm64

* fix icons and linker warnings

* fix cmake

* fetch libjpegturbo

---------

Co-authored-by: Luke Street <luke@street.dev>
2026-04-09 19:22:53 -06:00
PJB3005 a2d008ab09 Add Tracy stuff 2026-04-09 18:47:34 +02:00
PJB3005 c6b53b079c More TU debug consistency
Thought this was the cause of #264. Didn't end up being the case but figure it's still best to fix it.
2026-04-07 15:44:43 +02:00
madeline e47f67ee8c update include directories 2026-04-06 20:37:40 -07:00
madeline 8ce429b3ba walk that one on back 2026-04-06 20:37:39 -07:00
madeline 9f62ad45a0 remove includes 2026-04-06 20:37:39 -07:00
MelonSpeedruns 96ab109b97 Merge remote-tracking branch 'origin/main' into feature/dynamic-aspect-ratio 2026-04-06 13:16:38 -04:00
PJB3005 1b0ef861ac Merge branch 'main' into 26-04-04-config 2026-04-05 23:08:03 +02:00
PJB3005 4981a8904b Fix compile by giving WIDESCREEN_SUPPORT a value 2026-04-05 17:03:24 -04:00
MelonSpeedruns 0ef5eadea2 initial commit with working 3D view at all times 2026-04-05 16:55:48 -04:00
Max Roncace 31c7c84c5f Build "game" as a static library (#236)
* Build "game" as a static library

This effectively renames the "game" lib to game_base, builds it and
game_debug as object libraries, and links both into a single static
library. There is also some refactoring done to remove the game_base's
dependencies on game_debug's compile-time parameters which have now
been moved into shared buildscript variables.

* Fix build

---------

Co-authored-by: PJB3005 <pieterjan.briers+git@gmail.com>
2026-04-05 22:48:44 +02:00
Max Roncace 5a8d327e77 Revert "Get rid of separate game dylib"
This reverts commit 68fff3feeb.
2026-04-05 14:21:14 -04:00
PJB3005 68fff3feeb Get rid of separate game dylib
Just link that shit into the exe. Means we can turn off CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS and save file size.
2026-04-05 19:32:04 +02:00
PJB3005 758619c257 DUSK_SELECTED_OPT applies to freeverb
Fixes audio stuttering on debug builds
2026-04-05 19:09:33 +02:00
PJB3005 08038240e0 Merge remote-tracking branch 'origin/main' into 26-04-04-config 2026-04-05 15:13:04 +02:00
madeline a9a71331d6 fix .clangd on vscode 2026-04-04 22:22:18 -07:00
PJB3005 4235a5fddc Merge remote-tracking branch 'origin/main' into 26-04-04-config 2026-04-05 00:12:17 +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
madeline a0c361c6c9 reverb proof of concept 2026-04-04 01:38:28 -07:00
Luke Street 4216165dfb Copy more imgui stuff from Metaforce 2026-04-03 17:04:22 -06:00
Luke Street 6cbb8ffc8b Update aurora & use new frame buffer API 2026-04-02 23:08:00 -06:00
PJB3005 1096e5c869 Fix bad merge in #139 2026-04-01 23:43:26 +02: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 0c5bae4214 Move 2026-03-29 13:35:26 +02:00
PJB3005 b562490146 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
PJB3005 7ed3419b5d Forgot to remove this 2026-03-29 03:31:36 +02:00
PJB3005 4550595911 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 58ca78ea80 Allow movie support to be compiled out
(and therefore remove the libjpeg-turbo dependency)
2026-03-29 03:07:03 +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
PJB3005 c9151fca4a Remove SDL mixer
Didn't end up using it.
2026-03-27 15:10:31 +01:00
PJB3005 fb1323a583 Stop compiling some DSP-related files.
Replace it all with stubs.
2026-03-20 18:05:17 +01:00
PJB3005 15cc111474 Audio debug imgui 2026-03-14 17:35:09 +01:00
PJB3005 e2fb0e3a70 ADPCM4 decode impl 2026-03-14 14:02:15 +01:00
PJB3005 0c993fd7ed Basic audio system start 2026-03-14 14:02:13 +01:00
PJB3005 5c409fa8aa Add SDL-mixer dependency 2026-03-14 14:02:10 +01: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 f3120475eb Update aurora for prebuilt packages (#44) 2026-03-09 20:40:55 -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