[PR #3462] [MERGED] Libraries: libSceVrTracker stubs #3489

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

📋 Pull Request Information

Original PR: https://github.com/shadps4-emu/shadPS4/pull/3462
Author: @StevenMiller123
Created: 8/26/2025
Status: Merged
Merged: 8/27/2025
Merged by: @squidbus

Base: mainHead: vrtracker-stubs


📝 Commits (10+)

  • 1c05184 libSceVrTracker stubs, structs, enums, and errors
  • c75d2e5 sceVrTrackerQueryMemory
  • 145c204 Clang and slight struct cleanup
  • b8c4b1a Merge branch 'main' into vrtracker-stubs
  • be49229 Implement sceVrTrackerInit
  • cae382b Store memory pointers and sizes
  • 227605c sceVrTrackerRegisterDevice
  • 95a643b sceVrTrackerUnregisterDevice
  • b3c8ee6 sceVrTrackerTerm
  • 174c507 Additional error checks in sceVrTrackerRegisterDeviceInternal

📊 Changes

9 files changed (+1087 additions, -4 deletions)

View changed files

📝 CMakeLists.txt (+2 -0)
📝 src/common/logging/filter.cpp (+1 -0)
📝 src/common/logging/types.h (+1 -0)
📝 src/core/libraries/hmd/hmd.cpp (+3 -2)
📝 src/core/libraries/libs.cpp (+2 -0)
📝 src/core/libraries/move/move.cpp (+3 -2)
src/core/libraries/vr_tracker/vr_tracker.cpp (+632 -0)
src/core/libraries/vr_tracker/vr_tracker.h (+407 -0)
src/core/libraries/vr_tracker/vr_tracker_error.h (+36 -0)

📄 Description

This PR introduces stubs for libSceVrTracker, working under the same assumptions as my other VR-related library stubs (no PSVR headset attached, no PS Camera attached, and no PS Move attached).

This should improve any games that crash after calling sceVrTrackerGpuSubmit or sceVrTrackerQueryMemory, both functions were likely to cause issues before.

This fixes random crashing in The Last Guardian VR DEMO (CUSA10479), now the title boots and plays garbled audio (seems like an Audio3d issue) while spamming sceHmdSetupDialog stubs.


🔄 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/3462 **Author:** [@StevenMiller123](https://github.com/StevenMiller123) **Created:** 8/26/2025 **Status:** ✅ Merged **Merged:** 8/27/2025 **Merged by:** [@squidbus](https://github.com/squidbus) **Base:** `main` ← **Head:** `vrtracker-stubs` --- ### 📝 Commits (10+) - [`1c05184`](https://github.com/shadps4-emu/shadPS4/commit/1c051849dcdba088a8997a6f946141164c118b7b) libSceVrTracker stubs, structs, enums, and errors - [`c75d2e5`](https://github.com/shadps4-emu/shadPS4/commit/c75d2e5623e3be6b13dc6d26c24c19a48655d26d) sceVrTrackerQueryMemory - [`145c204`](https://github.com/shadps4-emu/shadPS4/commit/145c2045fb3e273f5173f1f4b440ce5ec28212ae) Clang and slight struct cleanup - [`b8c4b1a`](https://github.com/shadps4-emu/shadPS4/commit/b8c4b1a630a03c234b0fe3e4bce9cce6126529c1) Merge branch 'main' into vrtracker-stubs - [`be49229`](https://github.com/shadps4-emu/shadPS4/commit/be492294974223809d31ab2cfdd3ee4743306dde) Implement sceVrTrackerInit - [`cae382b`](https://github.com/shadps4-emu/shadPS4/commit/cae382bb15702a2a8040693b9cab639208c29cd6) Store memory pointers and sizes - [`227605c`](https://github.com/shadps4-emu/shadPS4/commit/227605ca702a5c160d59f5dbf777e5ebf9b92334) sceVrTrackerRegisterDevice - [`95a643b`](https://github.com/shadps4-emu/shadPS4/commit/95a643b1b16e910d3c5087d62644519c0ce4b610) sceVrTrackerUnregisterDevice - [`b3c8ee6`](https://github.com/shadps4-emu/shadPS4/commit/b3c8ee63414c7f941160c578c8ea2a32ddfb8583) sceVrTrackerTerm - [`174c507`](https://github.com/shadps4-emu/shadPS4/commit/174c507969a464e614c280c053df7f109b25f30e) Additional error checks in sceVrTrackerRegisterDeviceInternal ### 📊 Changes **9 files changed** (+1087 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `CMakeLists.txt` (+2 -0) 📝 `src/common/logging/filter.cpp` (+1 -0) 📝 `src/common/logging/types.h` (+1 -0) 📝 `src/core/libraries/hmd/hmd.cpp` (+3 -2) 📝 `src/core/libraries/libs.cpp` (+2 -0) 📝 `src/core/libraries/move/move.cpp` (+3 -2) ➕ `src/core/libraries/vr_tracker/vr_tracker.cpp` (+632 -0) ➕ `src/core/libraries/vr_tracker/vr_tracker.h` (+407 -0) ➕ `src/core/libraries/vr_tracker/vr_tracker_error.h` (+36 -0) </details> ### 📄 Description This PR introduces stubs for libSceVrTracker, working under the same assumptions as my other VR-related library stubs (no PSVR headset attached, no PS Camera attached, and no PS Move attached). This should improve any games that crash after calling `sceVrTrackerGpuSubmit` or `sceVrTrackerQueryMemory`, both functions were likely to cause issues before. This fixes random crashing in The Last Guardian VR DEMO (CUSA10479), now the title boots and plays garbled audio (seems like an Audio3d issue) while spamming sceHmdSetupDialog stubs. --- <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:53 +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#3489
No description provided.