Commit Graph
268 Commits
Author SHA1 Message Date
Exzap fe5ef4bf65 mic+nn_aoc+nn_fp: Reset more state on title start 2026-10-25 08:08:07 +01:00
Exzap bfb154520e GX2: Reset more state on title start 2026-10-25 08:08:07 +01:00
Exzap 0fa6cd023a dmae+tcl+ntag+nfc: Reset state on title start 2026-10-25 08:08:07 +01:00
Exzap 5b430d6553 coreinit: Clean up more state on title shutdown 2026-10-25 08:08:07 +01:00
Exzap a3c4d359d4 nn_fp: Remove double constinit 2026-10-25 08:08:07 +01:00
Exzap c15df109a2 HLE: Fix missing registration of nn_sl 2026-10-25 08:08:07 +01:00
Exzap f3f85d9e29 coreinit: Close open IPC handles on title shutdown 2026-10-25 08:08:07 +01:00
Exzap bb28394ce1 HLE: Bind guest PPC/IOSU variables to lifetime of their module
SysAllocator<> would allocate at Cemu boot and then never release memory.
Now we have CafeStaticVar<owner, type, count> which is explicitly allocated/deallocated via the owner and can be tied to COS/IOSU module lifetime. This also works as an automatic reset when relaunching emulation.
2026-10-25 08:08:07 +01:00
Exzap 5b8d513383 general: Small refactor and robustness improvements 2026-10-25 08:08:06 +01:00
Crementif 934329f93a GX2: Fix flush not starting a bigger cmd buffer when empty
If the command buffer was still empty, it wasn't replaced with a bigger one when a command didn't fit since it checked if it was smaller then the entire command pool, not the command buffer size itself.
2026-10-22 20:35:25 +02:00
Therand90 0e4fc41f20 sndcore: Fix DRC device mix mask indexing
See https://github.com/cemu-project/Cemu/pull/2099
2026-10-22 17:58:09 +02:00
Crementif a53cf0ece7 h264: Clean-up debug H264 log statement
Was getting force logged so it was kind of spammy, but we might even want to just remove it entirely.
2026-10-15 02:08:33 +02:00
Crementif 2c212b524b coreinit: Add the alarm queue functions 2026-10-13 17:24:28 +02:00
Crementif ae937e7885 coreinit: Add OSSetAlarmTag and OSCancelAlarms 2026-10-13 17:19:56 +02:00
Crementif f38c013b18 coreinit: Fix reading past the end of the host alarm list 2026-10-13 17:19:42 +02:00
Crementif b93335be5d coreinit: Fix periodic alarms with a start time in the future 2026-10-13 17:19:42 +02:00
Crementif c8a5e25d54 coreinit: Ignore OSSetAlarm calls with a non-positive delay
Cemu fired the alarm right away instead, so a handler which sets its alarm again with a delay of zero looped forever. nsyskbd does this with a key repeat rate of zero.

OSSetPeriodicAlarm likewise ignores a period of zero or below.
2026-10-13 17:19:42 +02:00
Crementif 091a711fd7 coreinit: Disable default NaN mode on ARM 2026-10-04 03:08:42 +02:00
Crementif e24374a137 coreinit: fix OSTicksToCalendarTime accuracy w/ leap years 2026-09-21 19:12:48 +02:00
Exzap 0314ec915c GX2: Set correct shader mode default 2026-09-20 13:37:00 +02:00
Exzap 0d8ff87b6b GX2: Check actual connection status in GX2SetDRCConnectCallback
Fixes Just Dance 2018 not reacting to any GamePad input
2026-09-20 09:29:08 +02:00
Exzap 14e74ea33f nsysnet: Avoid CPU starvation when games call select in a loop
Fixes Just Dance 2018 getting stuck on a black screen during early boot
2026-09-20 05:04:21 +02:00
Exzap 3277f9f9c2 coreinit: Fix export module for OSAllocFromSystem/OSFreeToSystem 2026-09-20 04:34:56 +02:00
Exzap 00bd6c96d3 Latte+GX2: Improve GX2SetShaderModeEx and handle uniform mode
Cemu was more lenient than the actual hardware and allowed both uniform registers and uniform blocks use at the same time. We now handle DX9_CONSTS set via GX2SetShaderMode correctly and will try to zero out the disabled uniform type
2026-09-20 04:34:02 +02:00
Exzap c12284f1da Latte: Refactor texture and vertex fetch constants into unified enum 2026-09-20 04:34:02 +02:00
Exzap 3310f3b8b1 Vulkan: Experimental barrier skip when the game does not request it 2026-09-10 13:52:55 +02:00
Exzap bda380dd33 Latte+GX2: Improve GX2Invalidate and implement basic tex invalidation 2026-09-10 13:27:23 +02:00
Exzap a81a28ccf8 RPL: Refactor RPL loader + robustness improvements 2026-09-10 13:27:23 +02:00
Exzap f0009d8e61 TCL: Yield thread when waiting for ringbuffer space 2026-09-10 13:27:23 +02:00
Exzap 38c6ea1895 Remove mac disclaimer + minor code cleanup 2026-09-10 13:27:22 +02:00
Exzap fb3d265d70 RPL: Fix race condition when closing Cemu while game is booting 2026-09-10 13:27:22 +02:00
capitalistspz 51250c02de Fix makeCallableExport (#2049) 2026-09-03 05:13:23 +02:00
capitalistspz daacdda0ba coreinit: Return correct size from MEMResizeForMBlockExpHeap when requested size equals block size (#2022) 2026-08-06 22:50:38 +02:00
techmuse b8f2cf4b43 coreinit: Implement Dynload notify callbacks (#2003) 2026-07-23 07:25:39 +02:00
primaviera 13d1826b4d nn_fp: Improve Comment struct and fix invalid Mii name on Linux (#1986) 2026-07-19 08:08:57 +02:00
techmuse 3005cb7b46 coreinit: Implement a few more DynLoad functions (#1990) 2026-07-18 02:36:43 +02:00
Exzap 578312b6e0 nn_nfp: Fix wrong constant 2026-07-13 01:50:10 +02:00
Exzap 4b72d7cf1e swkbd: Refactor + implement and stub more API
MH3G/MH3U has fragile multi-threaded use of swkbd and gets stuck if some operations complete too fast, specifically if SwkbdCreate completes quickly. For now we solve this by adding a sleep delay.

Also modernized and API registration and SwkbdInitLearnDic will create a valid empty dictionary now since MH3G tries to parse it
2026-07-13 01:50:10 +02:00
Exzap 372cadd617 RPL: Improve load order
System RPLs are actually never loaded from the game's code directory. Verified on console.
Also do a minimalist check if the necessary files are dumped for erreula and swkbd, otherwise they will just crash on load.

Fixes #1977
2026-07-13 01:50:10 +02:00
Exzap 0e1c927d59 h264: Handle stream interruption more gracefully
Streams will still struggle to catch up, but at least it shouldn't deadlock games anymore
2026-07-13 01:48:43 +02:00
Exzap 359f1d9beb h264: Improve H264DECGetImageSize and fix a regression 2026-06-29 13:17:49 +02:00
Exzap 4c4ef50f49 Vulkan: Smaller fixes + code cleanup 2026-06-27 13:12:37 +02:00
Exzap a39e99ecd4 h264: Improve H264DECMemoryRequirement 2026-06-27 13:12:37 +02:00
Cynthia Coan 1c7fbafb00 coreinit: Flush logs when forwarding (#1965) 2026-06-25 17:26:41 +02:00
Exzap 53a74e44df coreinit+UI: Implement exit()
When coreinit exit() is hit, then Cemu will only close when the game was launched directly via command line parameters (-g or -t). Otherwise it returns to the game list. In the case where Cemu closes it will forward the coreinit exit status code as it's own exit status code. This is useful for cases where Cemu is used as a CLI tool for testing homebrew
2026-06-25 06:42:33 +02:00
Cynthia Coan a3d6395ed7 Add command line parameters to make Cemu more useful for running tests (#1959) 2026-06-23 04:59:53 +02:00
Exzap d28c7654ec snduser: Implement MIXSetDeviceSPan + MIXSetDeviceLFE 2026-06-10 17:28:55 +02:00
Exzap e70b270e71 sndcore: Small fix and cleanup 2026-06-10 17:28:55 +02:00
Exzap 263b3510d6 snduser: Avoid hardcoded samples-per-frame 2026-06-10 17:28:55 +02:00
Exzap fc001cdf05 sndcore: Improve PCM16 linear sampling + correctly clamp sndcore2 ADSR 2026-06-10 17:28:55 +02:00