Skip to content

fix(exports): export the PS VR2 calls PPSA07411 imports that no library has - #4044

Merged
oneandonlydean merged 2 commits into
boykopovar:mainfrom
xXPBSXx:fix/export-ppsa07411-vr2-imports
Oct 12, 2026
Merged

oneandonlydean merged 2 commits into
boykopovar:mainfrom
xXPBSXx:fix/export-ppsa07411-vr2-imports

Conversation

@xXPBSXx

@xXPBSXx xXPBSXx commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

What

Resident Evil 4 (PPSA07411) imports seven PS VR2 calls that no library exports; #3537 adds other calls of the same family but not these. This PR declares them without parameters as throwing stubs (signatures unknown), as #1347 did for PPSA01317:

Library Exports
libSceHmd2 sceHmd2GetDeviceInformationByHandle, sceHmd2GetFieldOfView, sceHmd2Terminate
libScePad scePadVrControllerSetVibration, scePadVrControllerSetVibrationMode, scePadVrControllerReadCombinedState
libSceVrTracker2 sceVrTracker2ResetLocalCoordinate

Names come from the aerolib NID list (tools/nid_names.py). No test is added, since CONTRIBUTING says not to test that a symbol is exported; a TechnicalDebt entry lists the stubs. Overlap with #3537, checked with gh pr diff 3537: it declares sceHmd2GazeGetResult, sceHmd2Reprojection{DisableMirroring,EnableMirroring,GetMirroringDisplayBufferSizeAlign,GetMirroringWorkMemorySizeAlign,SetMirroringOption,SetParam,SetTiming,Terminate}, scePadVrControllerGetTriggerEffectState, scePadVrControllerSetTriggerEffect(s), sceVrTracker2Finalize, sceVrTracker2GetPlayAreaOrientedBoundingBox and sceVrTracker2LocateCoordinateSystem; none of the seven names here (main has sceHmd2GetFieldOfViewWithoutHandle but not sceHmd2GetFieldOfView). Both PRs append to the same three Export.cpp files, so they can conflict textually; this PR therefore inserts after the first function of each file. The title's other missing imports are covered by #3773 (Ssl, Json, ConvertKeycode, NpSessionSignaling), #3737 (Json setSpecialFloatFormatType), #3707 (libSceNet) and #3537. Each stub is added after the first function of its file, away from the end where #3537 appends.

Tested

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none (no shared names with feat(libs): declare the PS VR2 exports PPSA15878 imports #3537; possible textual conflict only)
  • AI-assisted: yes (Claude Code)

…ry has

PPSA07411 (Resident Evil 4) fails to load without these imports. Their signatures are unknown, so they are declared without parameters and throw until they are implemented. Adds a TechnicalDebt entry.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Oct 11, 2026 •

Copy link
Copy Markdown

Progress report (dd1cf5c → 859d0b1)

📉 System libraries: 86.07% (-0.17%, +7 declared functions)

🆕 7 declared as stubs
Library Name
libSceHmd2 sceHmd2GetDeviceInformationByHandle
libSceHmd2 sceHmd2GetFieldOfView
libSceHmd2 sceHmd2Terminate
libScePad scePadVrControllerReadCombinedState
libScePad scePadVrControllerSetVibration
libScePad scePadVrControllerSetVibrationMode
libSceVrTracker2 sceVrTracker2ResetLocalCoordinate

@github-actions

github-actions Bot commented Oct 11, 2026 •

Copy link
Copy Markdown

Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.

Pull request Conflicting files (lines on main) Same exports Same new files
#3820 core/libs/prx/libSceHmd2/Export.cpp L18-21

main has sceHmd2GetFieldOfViewWithoutHandle only; PPSA07411 imports sceHmd2GetFieldOfView.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants