fix(exports): export the calls PPSA07411 imports #3773

Merged
xXPBSXx merged 3 commits from upstream-pr/3773 into main 2026-10-11 21:59:50 +00:00
xXPBSXx commented 2026-10-11 16:39:27 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-11T16:39:27Z.


What

Resident Evil 4 (PPSA07411) fails to load because 12 imports have no export. This PR declares them without parameters as throwing stubs (signatures unknown), as #1347 did for PPSA01317:

Library Exports
libSceSsl (6) sceSslCreateConnection, sceSslDeleteConnection, sceSslEnableVerifyOption, sceSslConnect, sceSslRead, sceSslWrite
libSceJson2 (4) sce::Json::Value::setElementAccessFailureHandler, setSpecialFloatHandler, setTypeMismatchHandler, operator bool
libSceConvertKeycode (1) sceConvertKeycodeGetCharacter
libSceNpSessionSignaling (1) sceNpSessionSignalingGetGroupFromSessionId

Names come from the aerolib NID list (tools/nid_names.py). The title's other missing imports are not in this PR: sce::Json::InitParameter2::setSpecialFloatFormatType is added by #3737 (and #3575), and the PS VR2 calls are split between #3537 and the follow-up #4044. #3537 adds sceHmd2GazeGetResult, sceHmd2Reprojection{Disable,Enable}Mirroring, ...GetMirroring{DisplayBufferSizeAlign,WorkMemorySizeAlign}, ...SetMirroringOption, ...SetParam, ...SetTiming, ...Terminate, scePadVrControllerGetTriggerEffectState, ...SetTriggerEffect(s), sceVrTracker2Finalize, ...GetPlayAreaOrientedBoundingBox and ...LocateCoordinateSystem; #4044 declares the six RE4 imports that #3537 does not have. An earlier version of this description said #3537 contains all of them; that was wrong.

Tested

  • Windows, MinGW GCC 15.2.0, built on current main (a11c8f7f7): ctest -R "guest_ppsa07411_exports|guest_ssl|guest_json" passes; tools/check_conventions.py --base upstream/main passes.
  • Not tested: running PPSA07411 itself with this change. The functions throw, so the title only gets past the loader.

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 (Claude Code)
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4820624213 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3773). Originally posted by [xXPBSXx](https://github.com/xXPBSXx) on 2026-10-11T16:39:27Z. --- ### What Resident Evil 4 (PPSA07411) fails to load because 12 imports have no export. This PR declares them without parameters as throwing stubs (signatures unknown), as #1347 did for PPSA01317: | Library | Exports | |---|---| | `libSceSsl` (6) | `sceSslCreateConnection`, `sceSslDeleteConnection`, `sceSslEnableVerifyOption`, `sceSslConnect`, `sceSslRead`, `sceSslWrite` | | `libSceJson2` (4) | `sce::Json::Value::setElementAccessFailureHandler`, `setSpecialFloatHandler`, `setTypeMismatchHandler`, `operator bool` | | `libSceConvertKeycode` (1) | `sceConvertKeycodeGetCharacter` | | `libSceNpSessionSignaling` (1) | `sceNpSessionSignalingGetGroupFromSessionId` | Names come from the aerolib NID list (`tools/nid_names.py`). The title's other missing imports are not in this PR: `sce::Json::InitParameter2::setSpecialFloatFormatType` is added by #3737 (and #3575), and the PS VR2 calls are split between #3537 and the follow-up #4044. #3537 adds `sceHmd2GazeGetResult`, `sceHmd2Reprojection{Disable,Enable}Mirroring`, `...GetMirroring{DisplayBufferSizeAlign,WorkMemorySizeAlign}`, `...SetMirroringOption`, `...SetParam`, `...SetTiming`, `...Terminate`, `scePadVrControllerGetTriggerEffectState`, `...SetTriggerEffect(s)`, `sceVrTracker2Finalize`, `...GetPlayAreaOrientedBoundingBox` and `...LocateCoordinateSystem`; #4044 declares the six RE4 imports that #3537 does not have. An earlier version of this description said #3537 contains all of them; that was wrong. ### Tested - Windows, MinGW GCC 15.2.0, built on current `main` (`a11c8f7f7`): `ctest -R "guest_ppsa07411_exports|guest_ssl|guest_json"` passes; `tools/check_conventions.py --base upstream/main` passes. - Not tested: running PPSA07411 itself with this change. The functions throw, so the title only gets past the loader. ### 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](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed in [TechnicalDebt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/TechnicalDebt.md#silent-stubs) - [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 (Claude Code)
github-actions[bot] commented 2026-10-11 16:39:51 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-11T16:39:51Z.


Progress report (a11c8f7 → f854e52)

📉 System libraries: 85.51% (-0.3%, +12 declared functions)

🆕 12 declared as stubs
Library Name
libSceConvertKeycode sceConvertKeycodeGetCharacter
libSceJson2 _ZN3sce4Json5Value22setSpecialFloatHandlerEPFKS1_NS0_12FunctionTypeEdPS2_PvPbES5_
libSceJson2 _ZN3sce4Json5Value22setTypeMismatchHandlerEPFRKS1_NS0_9ValueTypeEPS2_S5_PvES6_
libSceJson2 _ZN3sce4Json5Value30setElementAccessFailureHandlerEPFviPKNS0_6StringEPKmPKS1_S8_PvES9_
libSceJson2 _ZNK3sce4Json5ValuecvbEv
libSceNpSessionSignaling sceNpSessionSignalingGetGroupFromSessionId
libSceSsl sceSslConnect
libSceSsl sceSslCreateConnection
libSceSsl sceSslDeleteConnection
libSceSsl sceSslEnableVerifyOption
libSceSsl sceSslRead
libSceSsl sceSslWrite
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6111261230 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3773#issuecomment-6111261230). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-11T16:39:51Z. --- <!-- progress-report --> ### Progress report (a11c8f7 → f854e52) 📉 **System libraries**: 85.51% (-0.3%, +12 declared functions) <details> <summary>🆕 12 declared as stubs</summary> | Library | Name | | - | - | | libSceConvertKeycode | `sceConvertKeycodeGetCharacter` | | libSceJson2 | `_ZN3sce4Json5Value22setSpecialFloatHandlerEPFKS1_NS0_12FunctionTypeEdPS2_PvPbES5_` | | libSceJson2 | `_ZN3sce4Json5Value22setTypeMismatchHandlerEPFRKS1_NS0_9ValueTypeEPS2_S5_PvES6_` | | libSceJson2 | `_ZN3sce4Json5Value30setElementAccessFailureHandlerEPFviPKNS0_6StringEPKmPKS1_S8_PvES9_` | | libSceJson2 | `_ZNK3sce4Json5ValuecvbEv` | | libSceNpSessionSignaling | `sceNpSessionSignalingGetGroupFromSessionId` | | libSceSsl | `sceSslConnect` | | libSceSsl | `sceSslCreateConnection` | | libSceSsl | `sceSslDeleteConnection` | | libSceSsl | `sceSslEnableVerifyOption` | | libSceSsl | `sceSslRead` | | libSceSsl | `sceSslWrite` | </details>
xXPBSXx commented 2026-10-11 16:53:43 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-11T16:53:43Z.


Update: removed GuestPPSA07411Exports.cpp and its CMake entry, since CONTRIBUTING asks for no tests that only check that a symbol is exported. The description's mention of the test no longer applies; the TechnicalDebt entry stays. The four libraries (libSceSsl, libSceJson2, libSceConvertKeycode, libSceNpSessionSignaling) build, and check_conventions.py passes.

AI-assisted (Claude Code).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6111389867 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3773#issuecomment-6111389867). Originally posted by [xXPBSXx](https://github.com/xXPBSXx) on 2026-10-11T16:53:43Z. --- Update: removed `GuestPPSA07411Exports.cpp` and its CMake entry, since CONTRIBUTING asks for no tests that only check that a symbol is exported. The description's mention of the test no longer applies; the TechnicalDebt entry stays. The four libraries (`libSceSsl`, `libSceJson2`, `libSceConvertKeycode`, `libSceNpSessionSignaling`) build, and `check_conventions.py` passes. AI-assisted (Claude Code).
adriadam10 commented 2026-10-11 21:59:46 +00:00 (Migrated from github.com)

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


Checked the 12 names against the aerolib NID list, no overlap with open PRs on these exports, scoped build and ctest (22/22) on current main, conventions check green; merging.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6114277224 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3773#issuecomment-6114277224). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-11T21:59:46Z. --- Checked the 12 names against the aerolib NID list, no overlap with open PRs on these exports, scoped build and ctest (22/22) on current main, conventions check green; merging.
xXPBSXx commented 2026-10-11 22:08:29 +00:00 (Migrated from github.com)

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


Correction to this description: it said the PS VR2 imports of Resident Evil 4 are already added by #3537. That was wrong. #3537 adds only part of that family (sceHmd2GazeGetResult, the sceHmd2Reprojection* mirroring/param/timing/terminate calls, scePadVrControllerGetTriggerEffectState, scePadVrControllerSetTriggerEffect(s), sceVrTracker2Finalize, GetPlayAreaOrientedBoundingBox, LocateCoordinateSystem). Six imports of the title stay unexported with #3537 alone: sceHmd2GetDeviceInformationByHandle, sceHmd2Terminate, scePadVrControllerSetVibration, scePadVrControllerSetVibrationMode, scePadVrControllerReadCombinedState and sceVrTracker2ResetLocalCoordinate. They are declared in the follow-up #4044. I found it by running the title's import audit on a stack of main with #3537, #3737, #3791, #3517, #3604 and #3707. The description above is updated.

AI-assisted (Claude Code).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6114387635 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3773#issuecomment-6114387635). Originally posted by [xXPBSXx](https://github.com/xXPBSXx) on 2026-10-11T22:08:29Z. --- Correction to this description: it said the PS VR2 imports of Resident Evil 4 are already added by #3537. That was wrong. #3537 adds only part of that family (`sceHmd2GazeGetResult`, the `sceHmd2Reprojection*` mirroring/param/timing/terminate calls, `scePadVrControllerGetTriggerEffectState`, `scePadVrControllerSetTriggerEffect(s)`, `sceVrTracker2Finalize`, `GetPlayAreaOrientedBoundingBox`, `LocateCoordinateSystem`). Six imports of the title stay unexported with #3537 alone: `sceHmd2GetDeviceInformationByHandle`, `sceHmd2Terminate`, `scePadVrControllerSetVibration`, `scePadVrControllerSetVibrationMode`, `scePadVrControllerReadCombinedState` and `sceVrTracker2ResetLocalCoordinate`. They are declared in the follow-up #4044. I found it by running the title's import audit on a stack of main with #3537, #3737, #3791, #3517, #3604 and #3707. The description above is updated. 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!3773
No description provided.