[PR #3434] [MERGED] Libraries: Better libSceCamera stubs #3464

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

📋 Pull Request Information

Original PR: https://github.com/shadps4-emu/shadPS4/pull/3434
Author: @StevenMiller123
Created: 8/19/2025
Status: Merged
Merged: 8/20/2025
Merged by: @squidbus

Base: mainHead: camera-stubs


📝 Commits (9)

  • 7117729 Initial work on improved stubs
  • c188db9 Get* functions complete
  • 9b9092c Finished stubs
  • 78b2744 Merge branch 'shadps4-emu:main' into camera-stubs
  • 444d9c9 sceCameraStart firmware check
  • 97bb2d0 sceCameraGetAutoExposureGain fix
  • 5b87271 Track opened handles
  • 279b8a2 Fix errors for sceCameraStart
  • 2de32e7 Promote sceCameraIsAttached log to info

📊 Changes

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

View changed files

📝 src/core/libraries/camera/camera.cpp (+640 -145)
📝 src/core/libraries/camera/camera.h (+93 -59)

📄 Description

Like my previous PR did for libSceMove, this PR stubs most of libSceCamera to match real hardware behaviors for when a camera is not attached.
I wasn't able to fill everything in, but most of what's left are internal functions used by other libraries (in most cases, likely used by libSceVrTracker).

This PR might help games that spam sceCamera stubs on current shadPS4 builds.

I did leave out a handful of parameter checks real hardware does in sceCameraSetConfig, though since the function fails no matter what you input, this shouldn't affect much.


🔄 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/3434 **Author:** [@StevenMiller123](https://github.com/StevenMiller123) **Created:** 8/19/2025 **Status:** ✅ Merged **Merged:** 8/20/2025 **Merged by:** [@squidbus](https://github.com/squidbus) **Base:** `main` ← **Head:** `camera-stubs` --- ### 📝 Commits (9) - [`7117729`](https://github.com/shadps4-emu/shadPS4/commit/71177295d6f2b7d4be3f6acc17b4b960a3ebf7e7) Initial work on improved stubs - [`c188db9`](https://github.com/shadps4-emu/shadPS4/commit/c188db94d2f788326af7bee59a65d995cb7608bb) Get* functions complete - [`9b9092c`](https://github.com/shadps4-emu/shadPS4/commit/9b9092c2af57ae880eea33ead9a36182e260cd87) Finished stubs - [`78b2744`](https://github.com/shadps4-emu/shadPS4/commit/78b274454326d99bfd9cdef51b82d836f89942d8) Merge branch 'shadps4-emu:main' into camera-stubs - [`444d9c9`](https://github.com/shadps4-emu/shadPS4/commit/444d9c951914ba9f5914a6b5e36b6c270783141d) sceCameraStart firmware check - [`97bb2d0`](https://github.com/shadps4-emu/shadPS4/commit/97bb2d0922589893057ee5f65ed309da25349259) sceCameraGetAutoExposureGain fix - [`5b87271`](https://github.com/shadps4-emu/shadPS4/commit/5b87271a1c72632b47fcd4fb73da1d2e23b34cce) Track opened handles - [`279b8a2`](https://github.com/shadps4-emu/shadPS4/commit/279b8a2b872fda30734a9308386cab43843d4e27) Fix errors for sceCameraStart - [`2de32e7`](https://github.com/shadps4-emu/shadPS4/commit/2de32e78e3a99f2632819fb8b2aedb51656d1c72) Promote sceCameraIsAttached log to info ### 📊 Changes **2 files changed** (+733 additions, -204 deletions) <details> <summary>View changed files</summary> 📝 `src/core/libraries/camera/camera.cpp` (+640 -145) 📝 `src/core/libraries/camera/camera.h` (+93 -59) </details> ### 📄 Description Like my previous PR did for libSceMove, this PR stubs most of libSceCamera to match real hardware behaviors for when a camera is not attached. I wasn't able to fill everything in, but most of what's left are internal functions used by other libraries (in most cases, likely used by libSceVrTracker). This PR might help games that spam `sceCamera` stubs on current shadPS4 builds. I did leave out a handful of parameter checks real hardware does in `sceCameraSetConfig`, though since the function fails no matter what you input, this shouldn't affect much. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 22:03:47 +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#3464
No description provided.