Commit Graph

3860 Commits

Author SHA1 Message Date
kalaposfos13
8396de2aa2 settings migration chapter 2 2026-03-10 15:32:27 +01:00
georgemoralis
fa1deb4845 fixed settings for the openal backend 2026-03-10 11:13:06 +02:00
georgemoralis
3157382d8e
OpenAL sound backened (#4030)
* code cleanup

* simd implementation and better buffer support

* reduce logging in audioout

* added openal libs

* added sceAudioOutGetSystemState

* fixed backend

* initial audio out openal support , still not working properly

* cleanups

* fixed converters for openal

* basic work for openal and audio3d

* clang

* better conversion?

* trying to fix conversions

* better conversions?

* more safe format conversions

* improved audioout conversions

* seems better

* smoother

* increased buffers

* reduce spamming log

* added SIMD version of convertors

* some corrections to audio3d

* support for AL_EXT_FLOAT32 extension and fallbacks if not available

* added device selection

* use ALC_ALL_DEVICES_SPECIFIER

* no it will not work this way

* improved device detection

* fixed audio3d again

* proper device register in openal

* some openal audio3d improvements based on the sdl one

* clang
2026-03-10 11:00:21 +02:00
georgemoralis
c9595a4288 added settings for audio backend 2026-03-10 10:43:59 +02:00
georgemoralis
58f4e12437
Merge branch 'main' into user_and_settings 2026-03-10 09:03:26 +02:00
Stephen Miller
3ee06a91df
Relocate imports on HLE loads (#4113)
Now that dynamic HLE loads happen after the eboot loads, HLEs for most "preload" modules wouldn't detect if you didn't have libSceRtc dumped. This was because, while we stored all the new symbols from the HLE lib, we weren't relocating loaded modules to use these symbols.
2026-03-10 07:25:45 +02:00
Stephen Miller
ab9577c088 Remove malloc_init stuff
Keeping my heap API definition fixes though, since that's a valid change.
Also adding back libScePadTracker LLE, shadow removed it during rebase, but it should still "work" with these changes.
2026-03-09 12:11:49 -05:00
georgemoralis
19a99dec41 compile fixes 2026-03-09 18:46:53 +02:00
georgemoralis
79025787da clang 2026-03-09 18:36:45 +02:00
Miller
f5d394a5b2 Merge branch 'malloc_init_heap_api_lle' into user_and_settings 2026-03-09 11:18:59 -05:00
georgemoralis
fb48bcf979
Merge branch 'main' into user_and_settings 2026-03-09 18:11:44 +02:00
Stephen Miller
85476e55ea
Recompiler: Implement IMAGE_ATOMIC_CMPSWAP (#4109)
* To implement ImageAtomicCmpSwap

...but it doesn't work, so here it shall stay.

* a fix

* Clang

* Add to MayHaveSideEffects

I missed this while digging through IR code.
2026-03-09 18:02:22 +02:00
TheTurtle
df6bb8562e
renderer_vulkan: Force subgroup size to 64 when possible (#4111) 2026-03-09 17:46:51 +02:00
TheTurtle
e16ba06ab0
shader_recompiler: Support 32 thread sharing mode (#4110) 2026-03-09 17:33:58 +02:00
kalaposfos13
0579569f13
Improve signal emulation (#4108)
* improve signal emulation

* make the sce function use the new posix ones

* ifdefing away the issues

* fix me being very tired yesterday night

* let macOS handle SIGRT signals with the native sigaction call instead of an early error return

* windows still has no clue what the fuck is going on

* the loathsome clang-formatter

* fix oact

* return the guest handler, not the host one

* Clear any existing signal mask for game threads.

* don't rely on implementation specific things

* Fix Windows support and sceKernelRaiseException bug

* Review suggestions

@kalaposfos13 suggested I push these.

---------

Co-authored-by: Stephen Miller <56742918+StevenMiller123@users.noreply.github.com>
2026-03-09 14:20:14 +02:00
kalaposfos13
eca4ef2665 thank you shadow :torrac: 2026-03-09 13:14:46 +01:00
kalaposfos13
7fe034f3ca hook up the new backend's lightbar colour values
This temorarily breaks override_controller_color, but that already only worked correctly with one gamepad anyway.
2026-03-09 13:11:47 +01:00
kalaposfos13
d0580a11fa Revert conditionally omitting the initial user login event until the exact trigger requirements are found 2026-03-09 09:52:45 +01:00
Stephen Miller
23a4f918a3 Some other fixups 2026-03-08 18:05:29 -05:00
Stephen Miller
da9c31bbee Fix for rebase 2026-03-08 17:48:16 -05:00
Stephen Miller
271638b6bf Merge branch 'main' into malloc_init_heap_api_lle 2026-03-08 17:48:08 -05:00
Stephen Miller
cc6af03adf
Lib.SysModule: Proper HLE implementation (#4102)
* Replace sysmodule enums with table

Dumped this from the 12.52 module, using a script I created.

* Better documentation

* Separate from system libraries

That system folder is going to be getting quite large if I left all the sysmodule stuff in there.

* More arrays from library

* Found another preload list

Ghidra really hates decompiling libSceSysmodule, so I didn't notice this one at first.
Also documented specific versions tied to each preload list.

* Start work on implementation

* Some basic implementations

* Initial stub for module loading

Just enough to see if the logic functions appropriately.

* Clang

* sceSysmoduleLoadModule

Now I need to get sceSysmodulePreloadModuleForLibkernel done so that we don't have bugs from not loading internal LLEs.

* sceSysmoduleLoadModuleInternal

* sceSysmodulePreloadModuleForLibkernel

I have successfully broken quite literally everything.
I shall debug this tomorrow.

* Slight fix

* Maybe fix?

* Change log

Enjoy the log spam 😄

* Increased defined stub count

Now that libc and libSceLibcInternal loads later, all the auto stubs are getting consumed by it.

* sceSysmoduleUnloadModule stub

Also a couple fixes. Sysmodule does pass argc and argv to game modules, but only after loading them once to check  binaries.
Shouldn't matter for the most part.

* Clang

* Less stubs

2 thousand is seemingly enough.

* sceSysmoduleLoadModuleInternalWithArg

Doesn't hurt to have, since Apex Legends calls it.

* Oops

* Oops 2

* Rename isModuleLoaded to getModuleHandle

Review comment

* Remove debug game module loads

These cases only trigger when specific sceRegMgr key values are set, and for our purposes, we can treat that case as false.

* Allow preloading to fail

For kalaposfos

* Clang
2026-03-08 21:48:03 +02:00
kalaposfos13
54efbcecc5 I missed this call before apparently 2026-03-07 14:43:34 +01:00
kalaposfos13
44276b1032 Make the initial user list be 4 users instead of one 2026-03-07 10:02:59 +01:00
kalaposfos13
5c818df257 continue new user backend integration into the input code 2026-03-07 09:41:23 +01:00
kalaposfos13
b296b6b69d implement support_initial_user_logout attribute handling 2026-03-07 09:05:00 +01:00
Stephen Miller
014b11e9da
Return an empty certificate (#4104)
This is enough to get past initialization checks in Rise of the Tomb Raider.
2026-03-07 09:15:32 +02:00
georgemoralis
50d5ce9a83
fixed an issue in sceKernelRemoveExceptionHandler (#4086)
* fixed an issue in sceKernelRemoveExceptionHandler

* fixed comment
2026-03-07 08:55:17 +02:00
georgemoralis
b20f3a9ceb
Merge branch 'main' into user_and_settings 2026-03-06 09:01:36 +02:00
Pavel
89e74828e6
fixup r128 (#4100) 2026-03-05 22:44:37 +02:00
georgemoralis
bb7ccde743 clang? 2026-03-05 14:32:17 +02:00
georgemoralis
75229eebe5 probably fix preserve old keys 2026-03-05 14:30:59 +02:00
georgemoralis
cecd98aa28 reset my latest try 2026-03-04 22:08:46 +02:00
Ultra
e121b228ea Clang and Copyright© year (#4099)
* copyright year + clang :)

* clang

* that did it hopefully?
2026-03-04 22:06:33 +02:00
georgemoralis
eb7118e6da try not to erase old settings 2026-03-04 22:06:27 +02:00
kalaposfos13
feba8a8ffd LLE libSceMoveTracker (still doesn't work, but at least it doesn't crash on boot either) 2026-03-04 17:12:32 +01:00
Miller
7ba8f046ec Merge branch 'malloc_init_heap_api_lle' into user_and_settings 2026-03-04 10:06:51 -06:00
Stephen Miller
a019aeee4d
Merge branch 'shadps4-emu:main' into malloc_init_heap_api_lle 2026-03-04 10:05:17 -06:00
kalaposfos13
8f3e3c2a69 Fix scePadOpen error returns and decouple pad handles from user IDs 2026-03-04 16:36:50 +01:00
Ultra
a595661d98
i love clang (#4098)
* clang emulator_settings.h

* Update np_manager.cpp

* Update userservice.cpp

* Update user_manager.h
2026-03-04 14:40:53 +02:00
georgemoralis
1ad9276e8a added merged strategy for user.json 2026-03-03 19:27:31 +02:00
kalaposfos13
9a487010d7 fossilised code elimination 2026-03-03 15:07:26 +01:00
kalaposfos13
83ad83c8ef reorganization + don't rebuild everything on changing the user manager + save user manager state on setter functions 2026-03-03 14:38:59 +01:00
kalaposfos13
d20df93f31 Finish users.json migration 2026-03-03 14:30:51 +01:00
georgemoralis
fefa647e1e ... 2026-03-03 14:13:09 +02:00
georgemoralis
47318e60b9 draft user_settings 2026-03-03 14:12:24 +02:00
kalaposfos13
296cab2129 Fix getting default user 2026-03-03 11:45:12 +01:00
kalaposfos13
8f97ebcf2c 💀 2026-03-03 11:25:56 +01:00
kalaposfos13
7c9e69dd22 LLE PadTracker even though it doesn't actually work 2026-03-03 11:05:03 +01:00
kalaposfos13
6c5c76d46b we like to watch the user Move it Move it with a Camera 2026-03-03 11:02:32 +01:00