Commit graph

6902 commits

Author SHA1 Message Date
UnknownShadow200
66d328ba2e
Merge pull request #1151 from headshot2017/switch
Nintendo Switch port
2024-03-17 08:02:33 +11:00
Headshotnoby
ff9052ca01
Merge branch 'ClassiCube:master' into switch 2024-03-16 16:34:49 -04:00
headshot2017
dec5e41ab9 Revert "add Switch to readme"
This reverts commit 3231cb7b06.
2024-03-16 16:34:16 -04:00
UnknownShadow200
514d16a313 Add Switch to readme and fix PSP/PS Vita builds 2024-03-17 07:31:59 +11:00
headshot2017
46da4fb095 adapt thread API redesign for Switch 2024-03-16 16:25:37 -04:00
Headshotnoby
d6caaf43d6
Merge branch 'ClassiCube:master' into switch 2024-03-16 16:18:53 -04:00
UnknownShadow200
83ba419a06 Redesign thread running API 2024-03-17 07:12:34 +11:00
headshot2017
1ce265fe89 remove stray code from Applet_Event
this is already in GLContext_InitSurface
2024-03-16 16:00:12 -04:00
headshot2017
3231cb7b06 add Switch to readme 2024-03-16 15:50:18 -04:00
headshot2017
8fd0e83c6e fix resolution change on handheld/docked
thx unknownshadow200
2024-03-16 13:20:52 -04:00
headshot2017
7978719237 attempts to fix resolution 2024-03-15 21:08:37 -04:00
headshot2017
cedc2ca8e0 use classicube's built in EGL implementation
i didn't realize i forgot to set Window_Main.Handle so it didn't crash
2024-03-15 20:06:08 -04:00
headshot2017
102a5367d1 change resolution on handheld/docked mode 2024-03-15 19:19:27 -04:00
headshot2017
e74023ce66 audrvUpdate after freeing audio backend
fixes garbage data playing on yuzu after returning to launcher
2024-03-15 19:12:53 -04:00
headshot2017
8d4adefb0e don't de-init audren on AudioBackend_Free()
fixes sounds not playing when returning to launcher and starting the game again
2024-03-15 12:44:12 -04:00
headshot2017
5c136aea57 AudioBackend_Tick!! 2024-03-14 22:18:19 -04:00
Headshotnoby
e1d830064c
Merge branch 'ClassiCube:master' into switch 2024-03-14 22:12:48 -04:00
UnknownShadow200
2e7c309e79 Tick audio from main game thread 2024-03-15 13:08:26 +11:00
headshot2017
1383d84daf change sound volume 2024-03-14 21:55:40 -04:00
headshot2017
2df6854dcf fix waitable milliseconds overflow
fixes music immediately starting again after it ends
2024-03-14 21:44:06 -04:00
headshot2017
c590975cdf fix music 2024-03-14 21:33:02 -04:00
headshot2017
413fa5e8de why didn't this sync?? 2024-03-14 19:46:28 -04:00
headshot2017
0bf5bb7762 log using svcOutputDebugString() 2024-03-14 19:32:51 -04:00
headshot2017
e0487ef70d waiting 2024-03-14 19:32:51 -04:00
headshot2017
5f9f8d15bc some more progress on switch audio backend
* if channels == 2 (stereo), use audrvVoiceSetMixFactor() calls from hwopus-decoder libnx example
* issue where music stops after playing for a few seconds
2024-03-14 19:32:50 -04:00
headshot2017
076f8dcb73 download sound asset on all platfoms
removed if defined CC_BUILD_CONSOLE preprocessor
2024-03-14 19:32:50 -04:00
headshot2017
aa23b5d444 download sound resources on Switch 2024-03-14 19:32:50 -04:00
headshot2017
ed3c0ff23c use libnx code for aligned alloc 2024-03-14 19:32:50 -04:00
headshot2017
5fdad50316 sounds are finally working on Switch
music is audible as well but it's broken. WARNING: if you decide to play with music, watch out for garbage data earrape
2024-03-14 19:32:50 -04:00
headshot2017
36b937e1c8 increase thread stack size to 0x100000 2024-03-14 19:32:49 -04:00
headshot2017
2d8949661d create sdmc:/switch
if it doesn't exist, it fails to create sdmc:/switch/ClassiCube and does not download resources
2024-03-14 19:32:49 -04:00
headshot2017
f37b3aea77 revert back to mutex/condvar waitables
fixes sign in
2024-03-14 19:32:48 -04:00
headshot2017
ee012dcd36 use 0x20000 stack size for threads 2024-03-14 19:32:48 -04:00
headshot2017
8566ac9631 use LEvent (light events) for waitable
also left Thread_Detach() empty
2024-03-14 19:32:48 -04:00
headshot2017
f14e3a55f5 add Thread_Detach for switch 2024-03-14 19:32:47 -04:00
headshot2017
bd1d7c674f replace pthread with libnx threads 2024-03-14 19:32:47 -04:00
headshot2017
ec4959c57e fix some mistakes on switch audren 2024-03-14 19:32:47 -04:00
headshot2017
198c6e18cc implement switch audren driver
temporarily calls audrvUpdate() on Window_ProcessEvents. need an audio update function
2024-03-14 19:32:46 -04:00
headshot2017
05a7e82582 comment out Thread_Detach code 2024-03-14 19:32:46 -04:00
headshot2017
7ee08a5c16 add -lpthread just in case 2024-03-14 19:32:46 -04:00
headshot2017
9fd89c3073 add Switch port 2024-03-14 19:32:24 -04:00
UnknownShadow200
8c78f66cc5 Wii U WIP stuff 2024-03-15 09:56:51 +11:00
UnknownShadow200
44ce6561ea Copy paste fail 2024-03-15 08:54:18 +11:00
UnknownShadow200
e41833dd26 Unfinished wii U stuff 2024-03-15 08:44:05 +11:00
UnknownShadow200
c087dfac50 Dreamcast: Optimise a tiny bit 2024-03-12 23:43:58 +11:00
UnknownShadow200
0b82f4f3df N64: Try to disable FPU exceptions 2024-03-04 19:15:32 +11:00
UnknownShadow200
dfcd025cab Support displaying < 1 FPS in HUD 2024-02-21 19:41:13 +11:00
UnknownShadow200
c4e8729034 Separate event for controller movement from pointer raw movement 2024-02-20 21:04:24 +11:00
UnknownShadow200
89725e4676 Transfer repository to ClassiCube organization
Dreamcast: Also fix loading messages being trimmed
2024-02-20 11:52:31 +11:00
UnknownShadow200
c74151e289 NetBSD github actions too 2024-02-19 20:56:06 +11:00