[PR #1987] [MERGED] Fix sceKernelGetEventFilter #2424

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

📋 Pull Request Information

Original PR: https://github.com/shadps4-emu/shadPS4/pull/1987
Author: @StevenMiller123
Created: 12/31/2024
Status: Merged
Merged: 12/31/2024
Merged by: @georgemoralis

Base: mainHead: equeue-fix


📝 Commits (1)

  • 3ac4756 Fix sceKernelGetEventFilter

📊 Changes

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

View changed files

📝 src/core/libraries/kernel/equeue.cpp (+1 -1)
📝 src/core/libraries/kernel/equeue.h (+1 -1)

📄 Description

Based on some testing, it appears that the s16 return type we're using on sceKernelGetEventFilter is smaller than the expected return type on Windows devices. Swapping the type to int fixes this, and doesn't appear to impact Linux devices in any way.
Fixes a Windows-specific issue seen in The Last of Us Remastered (CUSA00552)


🔄 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/1987 **Author:** [@StevenMiller123](https://github.com/StevenMiller123) **Created:** 12/31/2024 **Status:** ✅ Merged **Merged:** 12/31/2024 **Merged by:** [@georgemoralis](https://github.com/georgemoralis) **Base:** `main` ← **Head:** `equeue-fix` --- ### 📝 Commits (1) - [`3ac4756`](https://github.com/shadps4-emu/shadPS4/commit/3ac4756f96238588105725ca3957dfbbd7e6d44b) Fix sceKernelGetEventFilter ### 📊 Changes **2 files changed** (+2 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `src/core/libraries/kernel/equeue.cpp` (+1 -1) 📝 `src/core/libraries/kernel/equeue.h` (+1 -1) </details> ### 📄 Description Based on some testing, it appears that the `s16` return type we're using on `sceKernelGetEventFilter` is smaller than the expected return type on Windows devices. Swapping the type to `int` fixes this, and doesn't appear to impact Linux devices in any way. Fixes a Windows-specific issue seen in The Last of Us Remastered (CUSA00552) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 21:16:27 +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#2424
No description provided.