[PR #1622] [MERGED] sysmodule: Remove need for libSceRazorCpu #2205

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

📋 Pull Request Information

Original PR: https://github.com/shadps4-emu/shadPS4/pull/1622
Author: @squidbus
Created: 11/30/2024
Status: Merged
Merged: 11/30/2024
Merged by: @georgemoralis

Base: mainHead: razorcpu


📝 Commits (1)

  • ff70b05 sysmodule: Remove need for libSceRazorCpu

📊 Changes

5 files changed (+33 additions, -8 deletions)

View changed files

📝 CMakeLists.txt (+1 -0)
📝 src/core/libraries/system/sysmodule.cpp (+18 -5)
📝 src/core/libraries/system/sysmodule.h (+5 -1)
src/core/libraries/system/system_error.h (+8 -0)
📝 src/emulator.cpp (+1 -2)

📄 Description

Uses of libSceRazorCpu, the primary current one being in libSceFiber, are gated behind checks that the sysmodule is loaded. Since it is only used for internal debugging and not useful to us as LLE, we can reduce the number of libraries that we need to load by always returning it as unloaded when queried.

Since I was modifying the sysmodule query functions, I also added the validity check for the sysmodule ID and related error codes.

Tested in CUSA17416 (Persona 5 Royal) and CUSA01130 (Gravity Rush: Remastered).


🔄 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/1622 **Author:** [@squidbus](https://github.com/squidbus) **Created:** 11/30/2024 **Status:** ✅ Merged **Merged:** 11/30/2024 **Merged by:** [@georgemoralis](https://github.com/georgemoralis) **Base:** `main` ← **Head:** `razorcpu` --- ### 📝 Commits (1) - [`ff70b05`](https://github.com/shadps4-emu/shadPS4/commit/ff70b05e2d83891c894b976039b6df740467459a) sysmodule: Remove need for libSceRazorCpu ### 📊 Changes **5 files changed** (+33 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `CMakeLists.txt` (+1 -0) 📝 `src/core/libraries/system/sysmodule.cpp` (+18 -5) 📝 `src/core/libraries/system/sysmodule.h` (+5 -1) ➕ `src/core/libraries/system/system_error.h` (+8 -0) 📝 `src/emulator.cpp` (+1 -2) </details> ### 📄 Description Uses of `libSceRazorCpu`, the primary current one being in `libSceFiber`, are gated behind checks that the sysmodule is loaded. Since it is only used for internal debugging and not useful to us as LLE, we can reduce the number of libraries that we need to load by always returning it as unloaded when queried. Since I was modifying the sysmodule query functions, I also added the validity check for the sysmodule ID and related error codes. Tested in CUSA17416 (Persona 5 Royal) and CUSA01130 (Gravity Rush: Remastered). --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 21:15:35 +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#2205
No description provided.