feat(libs): declare the PS VR2 exports PPSA15878 imports #3537

Merged
hugodearaujo merged 1 commit from upstream-pr/3537 into main 2026-10-11 21:32:40 +00:00
hugodearaujo commented 2026-10-11 12:39:57 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by hugodearaujo on 2026-10-11T12:39:57Z.


What

Propagation: Paradise Hotel (PPSA15878 01.000.000) does not load on main:

./app.elf: symbol lookup error: ./app.elf: undefined symbol: snYs7Nf-RKk

tools/import_audit.py lists 15 absent imports, all PS VR2. This PR declares them without parameters as throwing stubs, as #1347 did for PPSA01317, and adds them to TechnicalDebt next to the PPSA01317 entry. Names come from the aerolib NID list (tools/nid_names.py). The title also imports scePadVrControllerReadState, which #3110 already added.

Library Exports
libSceHmd2 (9) sceHmd2GazeGetResult; sceHmd2Reprojection{DisableMirroring, EnableMirroring, GetMirroringDisplayBufferSizeAlign, GetMirroringWorkMemorySizeAlign, SetMirroringOption, SetParam, SetTiming, Terminate}
libSceVrTracker2 (3) sceVrTracker2Finalize, sceVrTracker2GetPlayAreaOrientedBoundingBox, sceVrTracker2LocateCoordinateSystem
libScePad (3) scePadVrController{GetTriggerEffectState, SetTriggerEffect, SetTriggerEffects}

With them the title loads, sees sceHmd2Initialize fail (Instance creation failed) and falls back from OpenXR. It never calls any of the 15. It then stops at sceSysmoduleUnloadModule: invalid id 0, which #3538 fixes.

Tested

  • PPSA15878 on Linux: the audit goes from 15 absent imports to 0, and the title runs to the point above.
  • Linux: full CTest 832/832. check_conventions.py and check_test_registration.py pass.
  • Windows Server 2025 VM, WinLibs GCC 15.2, CI configure flags: full CTest 833/836; guest_kernel_sys, windows_exceptions and guest_filesystem exit with 0xc0000409 the same way on current main in this VM.

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
  • AI-assisted: yes

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4819111272 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3537). Originally posted by [hugodearaujo](https://github.com/hugodearaujo) on 2026-10-11T12:39:57Z. --- ### What Propagation: Paradise Hotel (PPSA15878 01.000.000) does not load on `main`: ``` ./app.elf: symbol lookup error: ./app.elf: undefined symbol: snYs7Nf-RKk ``` `tools/import_audit.py` lists 15 absent imports, all PS VR2. This PR declares them without parameters as throwing stubs, as #1347 did for PPSA01317, and adds them to TechnicalDebt next to the PPSA01317 entry. Names come from the aerolib NID list (`tools/nid_names.py`). The title also imports `scePadVrControllerReadState`, which #3110 already added. | Library | Exports | |---|---| | `libSceHmd2` (9) | `sceHmd2GazeGetResult`; `sceHmd2Reprojection{DisableMirroring, EnableMirroring, GetMirroringDisplayBufferSizeAlign, GetMirroringWorkMemorySizeAlign, SetMirroringOption, SetParam, SetTiming, Terminate}` | | `libSceVrTracker2` (3) | `sceVrTracker2Finalize`, `sceVrTracker2GetPlayAreaOrientedBoundingBox`, `sceVrTracker2LocateCoordinateSystem` | | `libScePad` (3) | `scePadVrController{GetTriggerEffectState, SetTriggerEffect, SetTriggerEffects}` | With them the title loads, sees `sceHmd2Initialize` fail (`Instance creation failed`) and falls back from OpenXR. It never calls any of the 15. It then stops at `sceSysmoduleUnloadModule: invalid id 0`, which #3538 fixes. ### Tested - PPSA15878 on Linux: the audit goes from 15 absent imports to 0, and the title runs to the point above. - Linux: full CTest 832/832. `check_conventions.py` and `check_test_registration.py` pass. - Windows Server 2025 VM, WinLibs GCC 15.2, CI configure flags: full CTest 833/836; `guest_kernel_sys`, `windows_exceptions` and `guest_filesystem` exit with `0xc0000409` the same way on current `main` in this VM. ### Checklist - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except technical debt - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed in TechnicalDebt - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] AI-assisted: yes 🤖 Generated with [Claude Code](https://claude.com/claude-code)
github-actions[bot] commented 2026-10-11 12:40:18 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-11T12:40:18Z.


Progress report (a11c8f7 → bdf67fc)

📉 System libraries: 85.43% (-0.38%, +15 declared functions)

🆕 15 declared as stubs
Library Name
libSceHmd2 sceHmd2GazeGetResult
libSceHmd2 sceHmd2ReprojectionDisableMirroring
libSceHmd2 sceHmd2ReprojectionEnableMirroring
libSceHmd2 sceHmd2ReprojectionGetMirroringDisplayBufferSizeAlign
libSceHmd2 sceHmd2ReprojectionGetMirroringWorkMemorySizeAlign
libSceHmd2 sceHmd2ReprojectionSetMirroringOption
libSceHmd2 sceHmd2ReprojectionSetParam
libSceHmd2 sceHmd2ReprojectionSetTiming
libSceHmd2 sceHmd2ReprojectionTerminate
libScePad scePadVrControllerGetTriggerEffectState
libScePad scePadVrControllerSetTriggerEffect
libScePad scePadVrControllerSetTriggerEffects
libSceVrTracker2 sceVrTracker2Finalize
libSceVrTracker2 sceVrTracker2GetPlayAreaOrientedBoundingBox
libSceVrTracker2 sceVrTracker2LocateCoordinateSystem
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6109118556 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3537#issuecomment-6109118556). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-11T12:40:18Z. --- <!-- progress-report --> ### Progress report (a11c8f7 → bdf67fc) 📉 **System libraries**: 85.43% (-0.38%, +15 declared functions) <details> <summary>🆕 15 declared as stubs</summary> | Library | Name | | - | - | | libSceHmd2 | `sceHmd2GazeGetResult` | | libSceHmd2 | `sceHmd2ReprojectionDisableMirroring` | | libSceHmd2 | `sceHmd2ReprojectionEnableMirroring` | | libSceHmd2 | `sceHmd2ReprojectionGetMirroringDisplayBufferSizeAlign` | | libSceHmd2 | `sceHmd2ReprojectionGetMirroringWorkMemorySizeAlign` | | libSceHmd2 | `sceHmd2ReprojectionSetMirroringOption` | | libSceHmd2 | `sceHmd2ReprojectionSetParam` | | libSceHmd2 | `sceHmd2ReprojectionSetTiming` | | libSceHmd2 | `sceHmd2ReprojectionTerminate` | | libScePad | `scePadVrControllerGetTriggerEffectState` | | libScePad | `scePadVrControllerSetTriggerEffect` | | libScePad | `scePadVrControllerSetTriggerEffects` | | libSceVrTracker2 | `sceVrTracker2Finalize` | | libSceVrTracker2 | `sceVrTracker2GetPlayAreaOrientedBoundingBox` | | libSceVrTracker2 | `sceVrTracker2LocateCoordinateSystem` | </details>
MarcZX10 commented 2026-10-11 12:50:23 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-11T12:50:23Z.


The current CI failures appear unrelated to this patch: the checks use base 1e8fff68c, where 3rdparty/imgui is an orphan gitlink without a .gitmodules URL. actions/checkout fails during cleanup with fatal: No url found for submodule path ... before compilation or convention checking. The same failure reproduces on PR #3535 and was fixed on main in #3511; rebasing onto the fixed base and rerunning checks should distinguish this environmental failure from any patch issue.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6109201751 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3537#issuecomment-6109201751). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-11T12:50:23Z. --- The current CI failures appear unrelated to this patch: the checks use base `1e8fff68c`, where `3rdparty/imgui` is an orphan gitlink without a `.gitmodules` URL. `actions/checkout` fails during cleanup with `fatal: No url found for submodule path ...` before compilation or convention checking. The same failure reproduces on PR #3535 and was fixed on main in #3511; rebasing onto the fixed base and rerunning checks should distinguish this environmental failure from any patch issue.
github-actions[bot] commented 2026-10-11 17:28:06 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-11T17:28:06Z.


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 L23-26, L48-49, L53-54, L58-59, L93-98
docs/dev/TechnicalDebt.md L73-74
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6111704257 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3537#issuecomment-6111704257). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-11T17:28:06Z. --- <!-- pr-overlap --> 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` [L23-26](https://github.com/boykopovar/AnyPS5/blob/1770f352d7546c1eae9cf1e1441e1ae2428dc3a0/core/libs/prx/libSceHmd2/Export.cpp#L23-L26), [L48-49](https://github.com/boykopovar/AnyPS5/blob/1770f352d7546c1eae9cf1e1441e1ae2428dc3a0/core/libs/prx/libSceHmd2/Export.cpp#L48-L49), [L53-54](https://github.com/boykopovar/AnyPS5/blob/1770f352d7546c1eae9cf1e1441e1ae2428dc3a0/core/libs/prx/libSceHmd2/Export.cpp#L53-L54), [L58-59](https://github.com/boykopovar/AnyPS5/blob/1770f352d7546c1eae9cf1e1441e1ae2428dc3a0/core/libs/prx/libSceHmd2/Export.cpp#L58-L59), [L93-98](https://github.com/boykopovar/AnyPS5/blob/1770f352d7546c1eae9cf1e1441e1ae2428dc3a0/core/libs/prx/libSceHmd2/Export.cpp#L93-L98)<br>`docs/dev/TechnicalDebt.md` [L73-74](https://github.com/boykopovar/AnyPS5/blob/1770f352d7546c1eae9cf1e1441e1ae2428dc3a0/docs/dev/TechnicalDebt.md#L73-L74) | | |
adriadam10 commented 2026-10-11 21:32:16 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-11T21:32:16Z.


Checked the 15 names against the aerolib NID list (all present, including snYs7Nf-RKk), build and scoped ctest (libSceHmd2, libScePad, libs: 21/21), no NID aliases, TechnicalDebt line in "Unknown function info"; all stubs throw. Merging.

Note: #3820 touches the same libSceHmd2/Export.cpp and TechnicalDebt regions (different exports), so whichever lands second needs a rebase.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6114006860 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3537#issuecomment-6114006860). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-11T21:32:16Z. --- Checked the 15 names against the aerolib NID list (all present, including `snYs7Nf-RKk`), build and scoped ctest (libSceHmd2, libScePad, libs: 21/21), no NID aliases, TechnicalDebt line in "Unknown function info"; all stubs throw. Merging. Note: #3820 touches the same `libSceHmd2/Export.cpp` and TechnicalDebt regions (different exports), so whichever lands second needs a rebase.
xXPBSXx commented 2026-10-11 22:50:06 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-11T22:50:06Z.


Test from Resident Evil 4 (PPSA07411), Windows, MinGW GCC 15.2.0. The title's import audit (tools/import_audit.py) on main plus this PR lists none of the names this PR adds (sceHmd2GazeGetResult, the sceHmd2Reprojection* mirroring/param/timing/terminate calls, scePadVrControllerGetTriggerEffectState, scePadVrControllerSetTriggerEffect(s), sceVrTracker2Finalize, sceVrTracker2GetPlayAreaOrientedBoundingBox, sceVrTracker2LocateCoordinateSystem) as absent any more. Without them the title does not get past the loader.

Six more PS VR2 imports of the same title are not in this PR: sceHmd2GetDeviceInformationByHandle, sceHmd2GetFieldOfView, sceHmd2Terminate, scePadVrControllerSetVibration, scePadVrControllerSetVibrationMode, scePadVrControllerReadCombinedState and sceVrTracker2ResetLocalCoordinate (seven; #4044). The loader stop on a stack with #3537 but without #4044 was unresolved ELF import E+b+c1Idyew (sceHmd2GetFieldOfView). With all the PRs below applied, RE4 runs 120 s and stops in graphics (scan conversion mode is unsupported (register 0x292 = 0x00000003), known). Not tested: the title with this PR alone.

AI-assisted (Claude Code).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6114780762 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3537#issuecomment-6114780762). Originally posted by [xXPBSXx](https://github.com/xXPBSXx) on 2026-10-11T22:50:06Z. --- Test from Resident Evil 4 (PPSA07411), Windows, MinGW GCC 15.2.0. The title's import audit (`tools/import_audit.py`) on `main` plus this PR lists none of the names this PR adds (`sceHmd2GazeGetResult`, the `sceHmd2Reprojection*` mirroring/param/timing/terminate calls, `scePadVrControllerGetTriggerEffectState`, `scePadVrControllerSetTriggerEffect(s)`, `sceVrTracker2Finalize`, `sceVrTracker2GetPlayAreaOrientedBoundingBox`, `sceVrTracker2LocateCoordinateSystem`) as absent any more. Without them the title does not get past the loader. Six more PS VR2 imports of the same title are not in this PR: `sceHmd2GetDeviceInformationByHandle`, `sceHmd2GetFieldOfView`, `sceHmd2Terminate`, `scePadVrControllerSetVibration`, `scePadVrControllerSetVibrationMode`, `scePadVrControllerReadCombinedState` and `sceVrTracker2ResetLocalCoordinate` (seven; #4044). The loader stop on a stack with #3537 but without #4044 was `unresolved ELF import E+b+c1Idyew` (`sceHmd2GetFieldOfView`). With all the PRs below applied, RE4 runs 120 s and stops in graphics (`scan conversion mode is unsupported (register 0x292 = 0x00000003)`, known). Not tested: the title with this PR alone. AI-assisted (Claude Code).
Sign in to join this conversation.
No reviewers
No labels
No milestone
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.

Reference
boykopovar/AnyPS5!3537
No description provided.