fix(exports): export the calls PPSA30601 imports #3814

Merged
xXPBSXx merged 3 commits from upstream-pr/3814 into main 2026-10-12 08:36:02 +00:00
xXPBSXx commented 2026-10-11 17:02:48 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-11T17:02:48Z.


What

Resonance: A Plague Tale Legacy (PPSA30601) fails to load because nine imports have no export. This PR declares them without parameters as throwing stubs (signatures unknown), as #1347 did for PPSA01317:

Library Exports
libSceJson2 (6) sce::Json::Object::Pair::Pair(String const&, Value const&), Object::Pair::~Pair, Object::insert(Pair const&), Array::iterator::operator++(int), Array::iterator::operator=, Array::iterator::iterator()
libSceAmpr sceAmprAmmGetUsageStatsData
libSceMouse sceMouseResetAbsolutePosition
libSceSaveData.native sceSaveDataDirNameSearch2

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. The title's other three missing imports are sceAcmBatchJobPriority (#3799), sceConvertKeycodeGetCharacter (#3773) and the sce::Json::Array copy constructor (#3570).

Tested

  • Windows, MinGW GCC 15.2.0, on current main (a11c8f7f7): the four libraries build; tools/check_conventions.py --base upstream/main passes. I searched the open PRs for these names (titles, and the diffs of the PRs that touch these libraries) and none declares them.
  • Not tested: running PPSA30601. The title's module loading itself needed --module-dir, and with all 12 imports present I have not run it.

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:4820773406 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3814). Originally posted by [xXPBSXx](https://github.com/xXPBSXx) on 2026-10-11T17:02:48Z. --- ### What Resonance: A Plague Tale Legacy (PPSA30601) fails to load because nine imports have no export. This PR declares them without parameters as throwing stubs (signatures unknown), as #1347 did for PPSA01317: | Library | Exports | |---|---| | `libSceJson2` (6) | `sce::Json::Object::Pair::Pair(String const&, Value const&)`, `Object::Pair::~Pair`, `Object::insert(Pair const&)`, `Array::iterator::operator++(int)`, `Array::iterator::operator=`, `Array::iterator::iterator()` | | `libSceAmpr` | `sceAmprAmmGetUsageStatsData` | | `libSceMouse` | `sceMouseResetAbsolutePosition` | | `libSceSaveData.native` | `sceSaveDataDirNameSearch2` | 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. The title's other three missing imports are `sceAcmBatchJobPriority` (#3799), `sceConvertKeycodeGetCharacter` (#3773) and the `sce::Json::Array` copy constructor (#3570). ### Tested - Windows, MinGW GCC 15.2.0, on current `main` (`a11c8f7f7`): the four libraries build; `tools/check_conventions.py --base upstream/main` passes. I searched the open PRs for these names (titles, and the diffs of the PRs that touch these libraries) and none declares them. - Not tested: running PPSA30601. The title's module loading itself needed `--module-dir`, and with all 12 imports present I have not run it. ### 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 17:03:09 +00:00 (Migrated from github.com)

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


Progress report (bab7b32 → 35a6df8)

📉 System libraries: 86.25% (-0.22%, +9 declared functions)

🆕 9 declared as stubs
Library Name
libSceAmpr sceAmprAmmGetUsageStatsData
libSceJson2 _ZN3sce4Json5Array8iteratorC1Ev
libSceJson2 _ZN3sce4Json5Array8iteratoraSERKS2_
libSceJson2 _ZN3sce4Json5Array8iteratorppEi
libSceJson2 _ZN3sce4Json6Object4PairC1ERKNS0_6StringERKNS0_5ValueE
libSceJson2 _ZN3sce4Json6Object4PairD1Ev
libSceJson2 _ZN3sce4Json6Object6insertERKNS1_4PairE
libSceMouse sceMouseResetAbsolutePosition
libSceSaveData.native sceSaveDataDirNameSearch2
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6111476139 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3814#issuecomment-6111476139). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-11T17:03:09Z. --- <!-- progress-report --> ### Progress report (bab7b32 → 35a6df8) 📉 **System libraries**: 86.25% (-0.22%, +9 declared functions) <details> <summary>🆕 9 declared as stubs</summary> | Library | Name | | - | - | | libSceAmpr | `sceAmprAmmGetUsageStatsData` | | libSceJson2 | `_ZN3sce4Json5Array8iteratorC1Ev` | | libSceJson2 | `_ZN3sce4Json5Array8iteratoraSERKS2_` | | libSceJson2 | `_ZN3sce4Json5Array8iteratorppEi` | | libSceJson2 | `_ZN3sce4Json6Object4PairC1ERKNS0_6StringERKNS0_5ValueE` | | libSceJson2 | `_ZN3sce4Json6Object4PairD1Ev` | | libSceJson2 | `_ZN3sce4Json6Object6insertERKNS1_4PairE` | | libSceMouse | `sceMouseResetAbsolutePosition` | | libSceSaveData.native | `sceSaveDataDirNameSearch2` | </details>
oneandonlydean commented 2026-10-11 23:17:30 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-11T23:17:30Z.


Conflicts with main in core/libs/prx/libSceJson2/Export.cpp (after #3570) and docs/dev/TechnicalDebt.md; please rebase.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6115010055 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3814#issuecomment-6115010055). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-11T23:17:30Z. --- Conflicts with main in `core/libs/prx/libSceJson2/Export.cpp` (after #3570) and `docs/dev/TechnicalDebt.md`; please rebase.
github-actions[bot] commented 2026-10-12 00:34:42 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-12T00:34:42Z.


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
#3950 core/libs/prx/libSceSaveData.native/Export.cpp L805-806
#4118 core/libs/prx/libSceSaveData.native/Export.cpp L805
#4217 core/libs/prx/libSceMouse/Export.cpp L24
#4218 core/libs/prx/libSceSaveData.native/Export.cpp L805
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6115660466 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3814#issuecomment-6115660466). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-12T00:34:42Z. --- <!-- 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 | |---|---|---|---| | #3950 | `core/libs/prx/libSceSaveData.native/Export.cpp` [L805-806](https://github.com/boykopovar/AnyPS5/blob/9bc362351780feb4ac57e0c10790ce5727f78cc6/core/libs/prx/libSceSaveData.native/Export.cpp#L805-L806) | | | | #4118 | `core/libs/prx/libSceSaveData.native/Export.cpp` [L805](https://github.com/boykopovar/AnyPS5/blob/9bc362351780feb4ac57e0c10790ce5727f78cc6/core/libs/prx/libSceSaveData.native/Export.cpp#L805) | | | | #4217 | `core/libs/prx/libSceMouse/Export.cpp` [L24](https://github.com/boykopovar/AnyPS5/blob/9bc362351780feb4ac57e0c10790ce5727f78cc6/core/libs/prx/libSceMouse/Export.cpp#L24) | | | | #4218 | `core/libs/prx/libSceSaveData.native/Export.cpp` [L805](https://github.com/boykopovar/AnyPS5/blob/9bc362351780feb4ac57e0c10790ce5727f78cc6/core/libs/prx/libSceSaveData.native/Export.cpp#L805) | | |
Dextroid17 commented 2026-10-12 03:24:57 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Dextroid17 on 2026-10-12T03:24:57Z.


Second title behind this export, which may help it land: Trails in the Sky 2nd Chapter (PPSA35169, 01.003.000) also imports KqiWXLgCVe0 = sceAmprAmmGetUsageStatsData from libSceAmpr.prx, and it stops on that NID once the libkernel pair in #4214 is recorded — measured on the relinked title, not inferred: #4214 (comment). With the set of imports that title is missing present — this one among them — it clears that wall and reaches its Vulkan device, swapchain, save data and 16 game threads (same run).

One disclosure, so nobody reviews the same symbol three times: I opened #4251 with a copy of this stub before seeing this PR, and #4220 carries the same export as well. I have narrowed #4251 to the one export of that set no other PR carries (touqMEt6qXQ = sceAmprAmmSetPageTablePoolOccupancyNotificationThreshold), so sceAmprAmmGetUsageStatsData stays with this PR, #4207 and #4220.

Written with AI assistance.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6117177911 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3814#issuecomment-6117177911). Originally posted by [Dextroid17](https://github.com/Dextroid17) on 2026-10-12T03:24:57Z. --- Second title behind this export, which may help it land: Trails in the Sky 2nd Chapter (PPSA35169, 01.003.000) also imports `KqiWXLgCVe0` = `sceAmprAmmGetUsageStatsData` from `libSceAmpr.prx`, and it stops on that NID once the `libkernel` pair in #4214 is recorded — measured on the relinked title, not inferred: [#4214 (comment)](https://github.com/boykopovar/AnyPS5/issues/4214#issuecomment-6116449486). With the set of imports that title is missing present — this one among them — it clears that wall and reaches its Vulkan device, swapchain, save data and 16 game threads ([same run](https://github.com/boykopovar/AnyPS5/issues/4214#issuecomment-6116547964)). One disclosure, so nobody reviews the same symbol three times: I opened #4251 with a copy of this stub before seeing this PR, and #4220 carries the same export as well. I have narrowed #4251 to the one export of that set no other PR carries (`touqMEt6qXQ` = `sceAmprAmmSetPageTablePoolOccupancyNotificationThreshold`), so `sceAmprAmmGetUsageStatsData` stays with this PR, #4207 and #4220. Written with AI assistance.
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!3814
No description provided.