[PR #2906] [MERGED] sceKernelAddTimerEvent implementation #3068

Closed
opened 2026-02-27 22:02:19 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/shadps4-emu/shadPS4/pull/2906
Author: @Fire-Cube
Created: 5/11/2025
Status: Merged
Merged: 5/13/2025
Merged by: @squidbus

Base: mainHead: TIMEREVENT


📝 Commits (9)

  • c912ac1 implementation
  • 00cc81c add backend (WIP)
  • d85001d now should be good
  • 24db8a9 fix moved m_name
  • 688cb39 fix clang
  • e0f3ac0 replace existing event when its same id and filter
  • 75b92ae run timercallback after addEvent and remove useless code
  • b13117c move KernelSignalRequest to the end
  • 67022d8 clang (i hate you)

📊 Changes

2 files changed (+90 additions, -0 deletions)

View changed files

📝 src/core/libraries/kernel/equeue.cpp (+88 -0)
📝 src/core/libraries/kernel/equeue.h (+2 -0)

📄 Description

sceKernelAddTimerEvent was implemented based on RE and the existing functions.
It’s used in CUSA05786, but I can’t confirm that it changes anything.
However, based on the RE of how sceKernelAddTimerEvent is used in the game and the output in the emulator, it appears to behave correctly.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/shadps4-emu/shadPS4/pull/2906 **Author:** [@Fire-Cube](https://github.com/Fire-Cube) **Created:** 5/11/2025 **Status:** ✅ Merged **Merged:** 5/13/2025 **Merged by:** [@squidbus](https://github.com/squidbus) **Base:** `main` ← **Head:** `TIMEREVENT` --- ### 📝 Commits (9) - [`c912ac1`](https://github.com/shadps4-emu/shadPS4/commit/c912ac1242a241eecc41723a1078d01ea1b26c70) implementation - [`00cc81c`](https://github.com/shadps4-emu/shadPS4/commit/00cc81cd9656ffb4eae1525b4efcf88d64288310) add backend (WIP) - [`d85001d`](https://github.com/shadps4-emu/shadPS4/commit/d85001dddcd30d97aa3e30969c95b80640b63256) now should be good - [`24db8a9`](https://github.com/shadps4-emu/shadPS4/commit/24db8a9b72d9087c36603abe507eb3e7f560b272) fix moved m_name - [`688cb39`](https://github.com/shadps4-emu/shadPS4/commit/688cb39942587ac28d3e9370aac9ac9dd08a35ba) fix clang - [`e0f3ac0`](https://github.com/shadps4-emu/shadPS4/commit/e0f3ac0c43eb9846f3f67a6bb7bcd8b7a06a99f1) replace existing event when its same id and filter - [`75b92ae`](https://github.com/shadps4-emu/shadPS4/commit/75b92ae18b784e2ed14ceaecaae5f59f38d5ff41) run timercallback after addEvent and remove useless code - [`b13117c`](https://github.com/shadps4-emu/shadPS4/commit/b13117c96bccb0bb12a4059985b6cae93092b140) move KernelSignalRequest to the end - [`67022d8`](https://github.com/shadps4-emu/shadPS4/commit/67022d825d5cfcf966444e1735b8fce149e58953) clang (i hate you) ### 📊 Changes **2 files changed** (+90 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `src/core/libraries/kernel/equeue.cpp` (+88 -0) 📝 `src/core/libraries/kernel/equeue.h` (+2 -0) </details> ### 📄 Description sceKernelAddTimerEvent was implemented based on RE and the existing functions. It’s used in CUSA05786, but I can’t confirm that it changes anything. However, based on the RE of how sceKernelAddTimerEvent is used in the game and the output in the emulator, it appears to behave correctly. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 22:02:19 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/shadPS4#3068
No description provided.