[PR #3546] [MERGED] Libraries: Implement sceKernelIsInSandbox, update OrbisSysModule enum #3560

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

📋 Pull Request Information

Original PR: https://github.com/shadps4-emu/shadPS4/pull/3546
Author: @StevenMiller123
Created: 9/7/2025
Status: Merged
Merged: 9/7/2025
Merged by: @squidbus

Base: mainHead: module-fixes


📝 Commits (4)

📊 Changes

4 files changed (+109 additions, -84 deletions)

View changed files

📝 src/core/libraries/kernel/process.cpp (+11 -6)
📝 src/core/libraries/kernel/process.h (+4 -4)
📝 src/core/libraries/system/sysmodule.cpp (+1 -1)
📝 src/core/libraries/system/sysmodule.h (+93 -73)

📄 Description

sceKernelIsInSandbox will always return the s32 value for true, since games are sandboxed. This fixes some internal behaviors of libSceSysmodule when attempting to run it LLE, since it uses this function to decide between hardcoding system or using sceKernelGetFsSandboxRandomWord to get the system folder.

I've also done some tests on libSceSysmodule to determine several missing or inaccurate module IDs, and corrected the enum appropriately. This will reduce how often we see blank IDs logged when games call sceSysmoduleLoadModule.


🔄 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/3546 **Author:** [@StevenMiller123](https://github.com/StevenMiller123) **Created:** 9/7/2025 **Status:** ✅ Merged **Merged:** 9/7/2025 **Merged by:** [@squidbus](https://github.com/squidbus) **Base:** `main` ← **Head:** `module-fixes` --- ### 📝 Commits (4) - [`ddd4d12`](https://github.com/shadps4-emu/shadPS4/commit/ddd4d12757d24318c90cfec537284daba30dcfab) Implement sceKernelIsInSandbox - [`5c7f7aa`](https://github.com/shadps4-emu/shadPS4/commit/5c7f7aaeabb2b7579011c7460a9dbade78ca5d36) Merge branch 'main' into module-fixes - [`75e060f`](https://github.com/shadps4-emu/shadPS4/commit/75e060f4b3f8840bc9d25f807882e1018171397a) Update OrbisSysModule enum - [`e1d5fb5`](https://github.com/shadps4-emu/shadPS4/commit/e1d5fb5e3d1d57d9fa2e119c9406086a20da0904) Clang ### 📊 Changes **4 files changed** (+109 additions, -84 deletions) <details> <summary>View changed files</summary> 📝 `src/core/libraries/kernel/process.cpp` (+11 -6) 📝 `src/core/libraries/kernel/process.h` (+4 -4) 📝 `src/core/libraries/system/sysmodule.cpp` (+1 -1) 📝 `src/core/libraries/system/sysmodule.h` (+93 -73) </details> ### 📄 Description sceKernelIsInSandbox will always return the s32 value for true, since games are sandboxed. This fixes some internal behaviors of libSceSysmodule when attempting to run it LLE, since it uses this function to decide between hardcoding `system` or using sceKernelGetFsSandboxRandomWord to get the system folder. I've also done some tests on libSceSysmodule to determine several missing or inaccurate module IDs, and corrected the enum appropriately. This will reduce how often we see blank IDs logged when games call sceSysmoduleLoadModule. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 22:04:09 +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#3560
No description provided.