refactor(libs): drop replacements of modules that titles ship themselves #676

Merged
adriadam10 merged 1 commit from upstream-pr/676 into main 2026-10-06 08:57:51 +00:00
adriadam10 commented 2026-10-05 14:50:47 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-05T14:50:47Z.


What

Removes the host replacements of six modules that titles ship themselves, and adds the rule to CONTRIBUTING:

  • libcohtml, libRenoirCore.PS5 (Coherent Gameface/Prysm UI)
  • libREDGalaxy64 (GOG Galaxy wrapper)
  • libfmod, libfmodstudio (FMOD)
  • libSceNpCppWebApi (Sony's C++ wrapper over libSceNpWebApi2), with its two guest tests and its two TechnicalDebt entries

Also drops the libcohtml.Prospero.prx copy rule (core/libs/CMakeLists.txt) and its entry in tools/package_release.py.

Why:

  • They are not system libraries; titles ship them next to the executable. Coherent's PS5 setup guide requires the title to distribute libcohtml.Prospero.prx and libRenoirCore.PS5.prx in the application folder (guide), and DOOM + DOOM II ships both (#556). #358 describes libREDGalaxy64 as game-bundled. Titles ship libfmod.prx and libfmodstudio.prx with 1093 and 359 exports; the replacements declared 136 and 97.
  • Since #10, a title's own module takes precedence: GuestModuleBuilder::Build leaves out any host dependency whose name matches a guest module (addHost). So for a title that ships one of these modules, the replacement is never linked.
  • libSceNpCppWebApi is an SDK library, but titles ship it too: Astro's Playroom has sce_module/libSceNpCppWebApi.prx (5.9 MB). Its imports are only system libraries that are already implemented on the host: libSceNpWebApi2 (24/24 done), libSceHttp, libSceJson2, libSceRtc, libkernel, libSceLibcInternal. The real work (requests over NpWebApi2) is already on the host; the C++ layer on top runs as converted guest code. Unlike libc.prx, which titles also ship but which every other library builds on, it is a thin wrapper.
  • Their code only reaches the system through imports (libkernel, libc, Agc...), which resolve to the host libraries. The relinker converts it like the executable; nothing in it needs a host reimplementation.
  • The replacements were added on the day #10 landed (#31, #33, #34). Same reasoning as the Party module dropped from #407.
  • Progress (current main): they declare 565 functions (224 not implemented, 341 counted as done; libSceNpCppWebApi alone 230), so the library figure goes from 82.30 % (2758/3351) to 86.76 % (2417/2786).

Not in this PR: loading the title's own Cohtml still fails in the relinker with a duplicate guest export between MediaDecoders.Prospero.prx and libcohtml.Prospero.prx (#556). That's a separate relinker fix.

#600 and #674 also edit the libcohtml.Prospero.prx line in tools/package_release.py; whichever lands second drops it.

@boykopovar this adds a CONTRIBUTING rule and removes the module from #358, so it's your call.
@oneandonlydean you test PRs on titles: could you run one that ships Cohtml, FMOD or Galaxy (Minecraft Legends, DOOM + DOOM II, Cyberpunk 2077)? I don't have any of them.

Tested

  • Linux (CachyOS, GCC, Release, BUILD_TESTING=ON): reconfigure + full build; ctest 350/350.
  • tools/progress.py: 2758/3351 (82.30 %) before, 2417/2786 (86.76 %) after.
  • tools/package_release.py --platform linux packages the build with the replacements' outputs removed.
  • Not tested with a title.

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
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4746743713 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/676). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-05T14:50:47Z. --- ### What Removes the host replacements of six modules that titles ship themselves, and adds the rule to CONTRIBUTING: - `libcohtml`, `libRenoirCore.PS5` (Coherent Gameface/Prysm UI) - `libREDGalaxy64` (GOG Galaxy wrapper) - `libfmod`, `libfmodstudio` (FMOD) - `libSceNpCppWebApi` (Sony's C++ wrapper over `libSceNpWebApi2`), with its two guest tests and its two TechnicalDebt entries Also drops the `libcohtml.Prospero.prx` copy rule (`core/libs/CMakeLists.txt`) and its entry in `tools/package_release.py`. Why: - They are not system libraries; titles ship them next to the executable. Coherent's PS5 setup guide requires the title to distribute `libcohtml.Prospero.prx` and `libRenoirCore.PS5.prx` in the application folder ([guide](https://docs.coherent-labs.com/cpp-prysm/integration/setup_guide_native/)), and DOOM + DOOM II ships both (#556). #358 describes `libREDGalaxy64` as game-bundled. Titles ship `libfmod.prx` and `libfmodstudio.prx` with 1093 and 359 exports; the replacements declared 136 and 97. - Since #10, a title's own module takes precedence: `GuestModuleBuilder::Build` leaves out any host dependency whose name matches a guest module (`addHost`). So for a title that ships one of these modules, the replacement is never linked. - `libSceNpCppWebApi` is an SDK library, but titles ship it too: Astro's Playroom has `sce_module/libSceNpCppWebApi.prx` (5.9 MB). Its imports are only system libraries that are already implemented on the host: `libSceNpWebApi2` (24/24 done), `libSceHttp`, `libSceJson2`, `libSceRtc`, `libkernel`, `libSceLibcInternal`. The real work (requests over NpWebApi2) is already on the host; the C++ layer on top runs as converted guest code. Unlike `libc.prx`, which titles also ship but which every other library builds on, it is a thin wrapper. - Their code only reaches the system through imports (libkernel, libc, Agc...), which resolve to the host libraries. The relinker converts it like the executable; nothing in it needs a host reimplementation. - The replacements were added on the day #10 landed (#31, #33, #34). Same reasoning as the `Party` module dropped from #407. - Progress (current `main`): they declare 565 functions (224 not implemented, 341 counted as done; `libSceNpCppWebApi` alone 230), so the library figure goes from 82.30 % (2758/3351) to 86.76 % (2417/2786). Not in this PR: loading the title's own Cohtml still fails in the relinker with a duplicate guest export between `MediaDecoders.Prospero.prx` and `libcohtml.Prospero.prx` (#556). That's a separate relinker fix. #600 and #674 also edit the `libcohtml.Prospero.prx` line in `tools/package_release.py`; whichever lands second drops it. @boykopovar this adds a CONTRIBUTING rule and removes the module from #358, so it's your call. @oneandonlydean you test PRs on titles: could you run one that ships Cohtml, FMOD or Galaxy (Minecraft Legends, DOOM + DOOM II, Cyberpunk 2077)? I don't have any of them. ### Tested - Linux (CachyOS, GCC, Release, `BUILD_TESTING=ON`): reconfigure + full build; `ctest` 350/350. - `tools/progress.py`: 2758/3351 (82.30 %) before, 2417/2786 (86.76 %) after. - `tools/package_release.py --platform linux` packages the build with the replacements' outputs removed. - Not tested with a title. ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [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
github-actions[bot] commented 2026-10-05 14:51:55 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-05T14:51:55Z.


Progress report (109a328 → 79057e9)

📈 System libraries: 86.76% (+4.46%, -565 removed functions)

🗑️ 565 removed
Library Name
libREDGalaxy64 redGalaxy64GameServerInit
libREDGalaxy64 redGalaxy64GetErrorString
libREDGalaxy64 redGalaxy64Init
libREDGalaxy64 redGalaxy64ProcessData
libREDGalaxy64 redGalaxy64ProcessGameServerData
libREDGalaxy64 redGalaxy64Shutdown
libREDGalaxy64 redgalaxy_stub_00
libREDGalaxy64 redgalaxy_stub_01
libREDGalaxy64 redgalaxy_stub_02
libREDGalaxy64 redgalaxy_stub_03
libREDGalaxy64 redgalaxy_stub_04
libREDGalaxy64 redgalaxy_stub_05
libREDGalaxy64 redgalaxy_stub_06
libREDGalaxy64 redgalaxy_stub_07
libREDGalaxy64 redgalaxy_stub_08
libREDGalaxy64 redgalaxy_stub_09
libREDGalaxy64 redgalaxy_stub_10
libREDGalaxy64 redgalaxy_stub_11
libREDGalaxy64 redgalaxy_stub_12
libREDGalaxy64 redgalaxy_stub_13
libREDGalaxy64 redgalaxy_stub_14
libREDGalaxy64 redgalaxy_stub_15
libREDGalaxy64 redgalaxy_stub_16
libREDGalaxy64 redgalaxy_stub_17
libREDGalaxy64 redgalaxy_stub_18
libREDGalaxy64 redgalaxy_stub_19
libREDGalaxy64 redgalaxy_stub_20
libREDGalaxy64 redgalaxy_stub_21
libREDGalaxy64 redgalaxy_stub_22
libRenoirCore.PS5 renoirStub00
libRenoirCore.PS5 renoirStub01
libRenoirCore.PS5 renoirStub02
libRenoirCore.PS5 renoirStub03
libRenoirCore.PS5 renoirStub04
libRenoirCore.PS5 renoirStub05
libRenoirCore.PS5 renoirStub06
libRenoirCore.PS5 renoirStub07
libRenoirCore.PS5 renoirStub08
libRenoirCore.PS5 renoirStub09
libRenoirCore.PS5 renoirStub10
libRenoirCore.PS5 renoirStub11
libRenoirCore.PS5 renoirStub12
libRenoirCore.PS5 renoirStub13
libRenoirCore.PS5 renoirStub14
libRenoirCore.PS5 renoirStub15
libRenoirCore.PS5 renoirStub16
libRenoirCore.PS5 renoirStub17
libRenoirCore.PS5 renoirStub18
libRenoirCore.PS5 renoirStub19
libRenoirCore.PS5 renoirStub20
libRenoirCore.PS5 renoirStub21
libRenoirCore.PS5 renoirStub22
libSceNpCppWebApi _ZN3sce2Np9CppWebApi12Leaderboards2V111UserFactory6createEPNS1_6Common10LibContextEPNS5_12IntrusivePtrINS3_4UserEEE
libSceNpCppWebApi _ZN3sce2Np9CppWebApi12Leaderboards2V121GetRankingRequestBody18setStartSerialRankERKi
libSceNpCppWebApi _ZN3sce2Np9CppWebApi12Leaderboards2V121GetRankingRequestBody8setGroupERKNS3_5GroupE
libSceNpCppWebApi _ZN3sce2Np9CppWebApi12Leaderboards2V121GetRankingRequestBody8setLimitERKi
libSceNpCppWebApi _ZN3sce2Np9CppWebApi12Leaderboards2V121GetRankingRequestBody8setUsersERKNS1_6Common6VectorINS5_12IntrusivePtrINS3_4UserEEEEE
libSceNpCppWebApi _ZN3sce2Np9CppWebApi12Leaderboards2V121GetRankingRequestBody9setOffsetERKi
libSceNpCppWebApi _ZN3sce2Np9CppWebApi12Leaderboards2V122GetRankingResponseBody10getEntriesEv
libSceNpCppWebApi _ZN3sce2Np9CppWebApi12Leaderboards2V122RecordScoreRequestBody10setCommentEPKc
libSceNpCppWebApi _ZN3sce2Np9CppWebApi12Leaderboards2V122RecordScoreRequestBody12setSmallDataEPKvm
libSceNpCppWebApi _ZN3sce2Np9CppWebApi12Leaderboards2V122RecordScoreRequestBody15setNeedsTmpRankERKb
libSceNpCppWebApi _ZN3sce2Np9CppWebApi12Leaderboards2V122RecordScoreRequestBody19setComparedDateTimeERK10SceRtcTick
libSceNpCppWebApi _ZN3sce2Np9CppWebApi12Leaderboards2V122RecordScoreRequestBody7setPcIdERKi
libSceNpCppWebApi _ZN3sce2Np9CppWebApi12Leaderboards2V128GetRankingRequestBodyFactory6createEPNS1_6Common10LibContextEPNS5_12IntrusivePtrINS3_21GetRankingRequestBodyEEE
libSceNpCppWebApi _ZN3sce2Np9CppWebApi12Leaderboards2V129RecordScoreRequestBodyFactory6createEPNS1_6Common10LibContextElPNS5_12IntrusivePtrINS3_22RecordScoreRequestBodyEEE
libSceNpCppWebApi _ZN3sce2Np9CppWebApi12Leaderboards2V14User12setAccountIdERKm
libSceNpCppWebApi _ZN3sce2Np9CppWebApi12Leaderboards2V14User7setPcIdERKi
libSceNpCppWebApi _ZN3sce2Np9CppWebApi12Leaderboards2V17ViewApi10getRankingEiRKNS4_21ParameterToGetRankingERNS1_6Common11TransactionINS8_12IntrusivePtrINS3_22GetRankingResponseBodyEEENSA_INS8_18ResponseHeaderBaseEEEEE
libSceNpCppWebApi _ZN3sce2Np9CppWebApi12Leaderboards2V17ViewApi21ParameterToGetRanking10initializeEPNS1_6Common10LibContextEi
libSceNpCppWebApi _ZN3sce2Np9CppWebApi12Leaderboards2V17ViewApi21ParameterToGetRanking24setgetRankingRequestBodyENS1_6Common12IntrusivePtrINS3_21GetRankingRequestBodyEEE
libSceNpCppWebApi _ZN3sce2Np9CppWebApi12Leaderboards2V17ViewApi21ParameterToGetRanking9terminateEv
libSceNpCppWebApi _ZN3sce2Np9CppWebApi12Leaderboards2V17ViewApi21ParameterToGetRankingC1Ev
libSceNpCppWebApi _ZN3sce2Np9CppWebApi12Leaderboards2V17ViewApi21ParameterToGetRankingD1Ev
libSceNpCppWebApi _ZN3sce2Np9CppWebApi12Leaderboards2V17ViewApi22getLargeDataByObjectIdEiRKNS4_33ParameterToGetLargeDataByObjectIdERNS1_6Common21DownStreamTransactionINS8_12IntrusivePtrINS4_37GetLargeDataByObjectIdResponseHeadersEEEEE
libSceNpCppWebApi _ZN3sce2Np9CppWebApi12Leaderboards2V17ViewApi33ParameterToGetLargeDataByObjectId10initializeEPNS1_6Common10LibContextEPKc
libSceNpCppWebApi _ZN3sce2Np9CppWebApi12Leaderboards2V17ViewApi33ParameterToGetLargeDataByObjectId9terminateEv
libSceNpCppWebApi _ZN3sce2Np9CppWebApi12Leaderboards2V17ViewApi33ParameterToGetLargeDataByObjectIdC1Ev
libSceNpCppWebApi _ZN3sce2Np9CppWebApi12Leaderboards2V17ViewApi33ParameterToGetLargeDataByObjectIdD1Ev
libSceNpCppWebApi _ZN3sce2Np9CppWebApi12Leaderboards2V19BoardsApi18getBoardDefinitionEiRKNS4_29ParameterToGetBoardDefinitionERNS1_6Common11TransactionINS8_12IntrusivePtrINS3_30GetBoardDefinitionResponseBodyEEENSA_INS8_18ResponseHeaderBaseEEEEE
libSceNpCppWebApi _ZN3sce2Np9CppWebApi12Leaderboards2V19BoardsApi29ParameterToGetBoardDefinition10initializeEPNS1_6Common10LibContextEi
libSceNpCppWebApi _ZN3sce2Np9CppWebApi12Leaderboards2V19BoardsApi29ParameterToGetBoardDefinition9terminateEv
libSceNpCppWebApi _ZN3sce2Np9CppWebApi12Leaderboards2V19BoardsApi29ParameterToGetBoardDefinitionC1Ev
libSceNpCppWebApi _ZN3sce2Np9CppWebApi12Leaderboards2V19BoardsApi29ParameterToGetBoardDefinitionD1Ev
libSceNpCppWebApi _ZN3sce2Np9CppWebApi12Leaderboards2V19RecordApi11recordScoreEiRKNS4_22ParameterToRecordScoreERNS1_6Common11TransactionINS8_12IntrusivePtrINS3_23RecordScoreResponseBodyEEENSA_INS4_26RecordScoreResponseHeadersEEEEE
libSceNpCppWebApi _ZN3sce2Np9CppWebApi12Leaderboards2V19RecordApi15recordLargeDataEiRKNS4_26ParameterToRecordLargeDataERNS1_6Common19UpStreamTransactionINS8_12IntrusivePtrINS3_27RecordLargeDataResponseBodyEEENSA_INS8_18ResponseHeaderBaseEEEEE
libSceNpCppWebApi _ZN3sce2Np9CppWebApi12Leaderboards2V19RecordApi22ParameterToRecordScore10initializeEPNS1_6Common10LibContextEiNS6_12IntrusivePtrINS3_22RecordScoreRequestBodyEEE
libSceNpCppWebApi _ZN3sce2Np9CppWebApi12Leaderboards2V19RecordApi22ParameterToRecordScore22setxPsnAtomicOperationENS5_19XPsnAtomicOperationE
libSceNpCppWebApi _ZN3sce2Np9CppWebApi12Leaderboards2V19RecordApi22ParameterToRecordScore9terminateEv
libSceNpCppWebApi _ZN3sce2Np9CppWebApi12Leaderboards2V19RecordApi22ParameterToRecordScoreC1Ev
libSceNpCppWebApi _ZN3sce2Np9CppWebApi12Leaderboards2V19RecordApi22ParameterToRecordScoreD1Ev
libSceNpCppWebApi _ZN3sce2Np9CppWebApi12Leaderboards2V19RecordApi26ParameterToRecordLargeData10initializeEPNS1_6Common10LibContextEiNS5_19XPsnAtomicOperationEPKc
libSceNpCppWebApi _ZN3sce2Np9CppWebApi12Leaderboards2V19RecordApi26ParameterToRecordLargeData9terminateEv
libSceNpCppWebApi _ZN3sce2Np9CppWebApi12Leaderboards2V19RecordApi26ParameterToRecordLargeDataC1Ev
libSceNpCppWebApi _ZN3sce2Np9CppWebApi12Leaderboards2V19RecordApi26ParameterToRecordLargeDataD1Ev
libSceNpCppWebApi _ZN3sce2Np9CppWebApi17TitleCloudStorage2V17DataApi12downloadDataEiRKNS4_23ParameterToDownloadDataERNS1_6Common21DownStreamTransactionINS8_12IntrusivePtrINS4_27DownloadDataResponseHeadersEEEEE
libSceNpCppWebApi _ZN3sce2Np9CppWebApi17TitleCloudStorage2V17DataApi23ParameterToDownloadData10initializeEPNS1_6Common10LibContextEPKci
libSceNpCppWebApi _ZN3sce2Np9CppWebApi17TitleCloudStorage2V17DataApi23ParameterToDownloadData9terminateEv
libSceNpCppWebApi _ZN3sce2Np9CppWebApi17TitleCloudStorage2V17DataApi23ParameterToDownloadDataC1Ev
libSceNpCppWebApi _ZN3sce2Np9CppWebApi17TitleCloudStorage2V17DataApi23ParameterToDownloadDataD1Ev
... 465 more
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:5996955483 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/676#issuecomment-5996955483). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-05T14:51:55Z. --- <!-- progress-report --> ### Progress report (109a328 → 79057e9) 📈 **System libraries**: 86.76% (+4.46%, -565 removed functions) <details> <summary>🗑️ 565 removed</summary> | Library | Name | | - | - | | libREDGalaxy64 | `redGalaxy64GameServerInit` | | libREDGalaxy64 | `redGalaxy64GetErrorString` | | libREDGalaxy64 | `redGalaxy64Init` | | libREDGalaxy64 | `redGalaxy64ProcessData` | | libREDGalaxy64 | `redGalaxy64ProcessGameServerData` | | libREDGalaxy64 | `redGalaxy64Shutdown` | | libREDGalaxy64 | `redgalaxy_stub_00` | | libREDGalaxy64 | `redgalaxy_stub_01` | | libREDGalaxy64 | `redgalaxy_stub_02` | | libREDGalaxy64 | `redgalaxy_stub_03` | | libREDGalaxy64 | `redgalaxy_stub_04` | | libREDGalaxy64 | `redgalaxy_stub_05` | | libREDGalaxy64 | `redgalaxy_stub_06` | | libREDGalaxy64 | `redgalaxy_stub_07` | | libREDGalaxy64 | `redgalaxy_stub_08` | | libREDGalaxy64 | `redgalaxy_stub_09` | | libREDGalaxy64 | `redgalaxy_stub_10` | | libREDGalaxy64 | `redgalaxy_stub_11` | | libREDGalaxy64 | `redgalaxy_stub_12` | | libREDGalaxy64 | `redgalaxy_stub_13` | | libREDGalaxy64 | `redgalaxy_stub_14` | | libREDGalaxy64 | `redgalaxy_stub_15` | | libREDGalaxy64 | `redgalaxy_stub_16` | | libREDGalaxy64 | `redgalaxy_stub_17` | | libREDGalaxy64 | `redgalaxy_stub_18` | | libREDGalaxy64 | `redgalaxy_stub_19` | | libREDGalaxy64 | `redgalaxy_stub_20` | | libREDGalaxy64 | `redgalaxy_stub_21` | | libREDGalaxy64 | `redgalaxy_stub_22` | | libRenoirCore.PS5 | `renoirStub00` | | libRenoirCore.PS5 | `renoirStub01` | | libRenoirCore.PS5 | `renoirStub02` | | libRenoirCore.PS5 | `renoirStub03` | | libRenoirCore.PS5 | `renoirStub04` | | libRenoirCore.PS5 | `renoirStub05` | | libRenoirCore.PS5 | `renoirStub06` | | libRenoirCore.PS5 | `renoirStub07` | | libRenoirCore.PS5 | `renoirStub08` | | libRenoirCore.PS5 | `renoirStub09` | | libRenoirCore.PS5 | `renoirStub10` | | libRenoirCore.PS5 | `renoirStub11` | | libRenoirCore.PS5 | `renoirStub12` | | libRenoirCore.PS5 | `renoirStub13` | | libRenoirCore.PS5 | `renoirStub14` | | libRenoirCore.PS5 | `renoirStub15` | | libRenoirCore.PS5 | `renoirStub16` | | libRenoirCore.PS5 | `renoirStub17` | | libRenoirCore.PS5 | `renoirStub18` | | libRenoirCore.PS5 | `renoirStub19` | | libRenoirCore.PS5 | `renoirStub20` | | libRenoirCore.PS5 | `renoirStub21` | | libRenoirCore.PS5 | `renoirStub22` | | libSceNpCppWebApi | `_ZN3sce2Np9CppWebApi12Leaderboards2V111UserFactory6createEPNS1_6Common10LibContextEPNS5_12IntrusivePtrINS3_4UserEEE` | | libSceNpCppWebApi | `_ZN3sce2Np9CppWebApi12Leaderboards2V121GetRankingRequestBody18setStartSerialRankERKi` | | libSceNpCppWebApi | `_ZN3sce2Np9CppWebApi12Leaderboards2V121GetRankingRequestBody8setGroupERKNS3_5GroupE` | | libSceNpCppWebApi | `_ZN3sce2Np9CppWebApi12Leaderboards2V121GetRankingRequestBody8setLimitERKi` | | libSceNpCppWebApi | `_ZN3sce2Np9CppWebApi12Leaderboards2V121GetRankingRequestBody8setUsersERKNS1_6Common6VectorINS5_12IntrusivePtrINS3_4UserEEEEE` | | libSceNpCppWebApi | `_ZN3sce2Np9CppWebApi12Leaderboards2V121GetRankingRequestBody9setOffsetERKi` | | libSceNpCppWebApi | `_ZN3sce2Np9CppWebApi12Leaderboards2V122GetRankingResponseBody10getEntriesEv` | | libSceNpCppWebApi | `_ZN3sce2Np9CppWebApi12Leaderboards2V122RecordScoreRequestBody10setCommentEPKc` | | libSceNpCppWebApi | `_ZN3sce2Np9CppWebApi12Leaderboards2V122RecordScoreRequestBody12setSmallDataEPKvm` | | libSceNpCppWebApi | `_ZN3sce2Np9CppWebApi12Leaderboards2V122RecordScoreRequestBody15setNeedsTmpRankERKb` | | libSceNpCppWebApi | `_ZN3sce2Np9CppWebApi12Leaderboards2V122RecordScoreRequestBody19setComparedDateTimeERK10SceRtcTick` | | libSceNpCppWebApi | `_ZN3sce2Np9CppWebApi12Leaderboards2V122RecordScoreRequestBody7setPcIdERKi` | | libSceNpCppWebApi | `_ZN3sce2Np9CppWebApi12Leaderboards2V128GetRankingRequestBodyFactory6createEPNS1_6Common10LibContextEPNS5_12IntrusivePtrINS3_21GetRankingRequestBodyEEE` | | libSceNpCppWebApi | `_ZN3sce2Np9CppWebApi12Leaderboards2V129RecordScoreRequestBodyFactory6createEPNS1_6Common10LibContextElPNS5_12IntrusivePtrINS3_22RecordScoreRequestBodyEEE` | | libSceNpCppWebApi | `_ZN3sce2Np9CppWebApi12Leaderboards2V14User12setAccountIdERKm` | | libSceNpCppWebApi | `_ZN3sce2Np9CppWebApi12Leaderboards2V14User7setPcIdERKi` | | libSceNpCppWebApi | `_ZN3sce2Np9CppWebApi12Leaderboards2V17ViewApi10getRankingEiRKNS4_21ParameterToGetRankingERNS1_6Common11TransactionINS8_12IntrusivePtrINS3_22GetRankingResponseBodyEEENSA_INS8_18ResponseHeaderBaseEEEEE` | | libSceNpCppWebApi | `_ZN3sce2Np9CppWebApi12Leaderboards2V17ViewApi21ParameterToGetRanking10initializeEPNS1_6Common10LibContextEi` | | libSceNpCppWebApi | `_ZN3sce2Np9CppWebApi12Leaderboards2V17ViewApi21ParameterToGetRanking24setgetRankingRequestBodyENS1_6Common12IntrusivePtrINS3_21GetRankingRequestBodyEEE` | | libSceNpCppWebApi | `_ZN3sce2Np9CppWebApi12Leaderboards2V17ViewApi21ParameterToGetRanking9terminateEv` | | libSceNpCppWebApi | `_ZN3sce2Np9CppWebApi12Leaderboards2V17ViewApi21ParameterToGetRankingC1Ev` | | libSceNpCppWebApi | `_ZN3sce2Np9CppWebApi12Leaderboards2V17ViewApi21ParameterToGetRankingD1Ev` | | libSceNpCppWebApi | `_ZN3sce2Np9CppWebApi12Leaderboards2V17ViewApi22getLargeDataByObjectIdEiRKNS4_33ParameterToGetLargeDataByObjectIdERNS1_6Common21DownStreamTransactionINS8_12IntrusivePtrINS4_37GetLargeDataByObjectIdResponseHeadersEEEEE` | | libSceNpCppWebApi | `_ZN3sce2Np9CppWebApi12Leaderboards2V17ViewApi33ParameterToGetLargeDataByObjectId10initializeEPNS1_6Common10LibContextEPKc` | | libSceNpCppWebApi | `_ZN3sce2Np9CppWebApi12Leaderboards2V17ViewApi33ParameterToGetLargeDataByObjectId9terminateEv` | | libSceNpCppWebApi | `_ZN3sce2Np9CppWebApi12Leaderboards2V17ViewApi33ParameterToGetLargeDataByObjectIdC1Ev` | | libSceNpCppWebApi | `_ZN3sce2Np9CppWebApi12Leaderboards2V17ViewApi33ParameterToGetLargeDataByObjectIdD1Ev` | | libSceNpCppWebApi | `_ZN3sce2Np9CppWebApi12Leaderboards2V19BoardsApi18getBoardDefinitionEiRKNS4_29ParameterToGetBoardDefinitionERNS1_6Common11TransactionINS8_12IntrusivePtrINS3_30GetBoardDefinitionResponseBodyEEENSA_INS8_18ResponseHeaderBaseEEEEE` | | libSceNpCppWebApi | `_ZN3sce2Np9CppWebApi12Leaderboards2V19BoardsApi29ParameterToGetBoardDefinition10initializeEPNS1_6Common10LibContextEi` | | libSceNpCppWebApi | `_ZN3sce2Np9CppWebApi12Leaderboards2V19BoardsApi29ParameterToGetBoardDefinition9terminateEv` | | libSceNpCppWebApi | `_ZN3sce2Np9CppWebApi12Leaderboards2V19BoardsApi29ParameterToGetBoardDefinitionC1Ev` | | libSceNpCppWebApi | `_ZN3sce2Np9CppWebApi12Leaderboards2V19BoardsApi29ParameterToGetBoardDefinitionD1Ev` | | libSceNpCppWebApi | `_ZN3sce2Np9CppWebApi12Leaderboards2V19RecordApi11recordScoreEiRKNS4_22ParameterToRecordScoreERNS1_6Common11TransactionINS8_12IntrusivePtrINS3_23RecordScoreResponseBodyEEENSA_INS4_26RecordScoreResponseHeadersEEEEE` | | libSceNpCppWebApi | `_ZN3sce2Np9CppWebApi12Leaderboards2V19RecordApi15recordLargeDataEiRKNS4_26ParameterToRecordLargeDataERNS1_6Common19UpStreamTransactionINS8_12IntrusivePtrINS3_27RecordLargeDataResponseBodyEEENSA_INS8_18ResponseHeaderBaseEEEEE` | | libSceNpCppWebApi | `_ZN3sce2Np9CppWebApi12Leaderboards2V19RecordApi22ParameterToRecordScore10initializeEPNS1_6Common10LibContextEiNS6_12IntrusivePtrINS3_22RecordScoreRequestBodyEEE` | | libSceNpCppWebApi | `_ZN3sce2Np9CppWebApi12Leaderboards2V19RecordApi22ParameterToRecordScore22setxPsnAtomicOperationENS5_19XPsnAtomicOperationE` | | libSceNpCppWebApi | `_ZN3sce2Np9CppWebApi12Leaderboards2V19RecordApi22ParameterToRecordScore9terminateEv` | | libSceNpCppWebApi | `_ZN3sce2Np9CppWebApi12Leaderboards2V19RecordApi22ParameterToRecordScoreC1Ev` | | libSceNpCppWebApi | `_ZN3sce2Np9CppWebApi12Leaderboards2V19RecordApi22ParameterToRecordScoreD1Ev` | | libSceNpCppWebApi | `_ZN3sce2Np9CppWebApi12Leaderboards2V19RecordApi26ParameterToRecordLargeData10initializeEPNS1_6Common10LibContextEiNS5_19XPsnAtomicOperationEPKc` | | libSceNpCppWebApi | `_ZN3sce2Np9CppWebApi12Leaderboards2V19RecordApi26ParameterToRecordLargeData9terminateEv` | | libSceNpCppWebApi | `_ZN3sce2Np9CppWebApi12Leaderboards2V19RecordApi26ParameterToRecordLargeDataC1Ev` | | libSceNpCppWebApi | `_ZN3sce2Np9CppWebApi12Leaderboards2V19RecordApi26ParameterToRecordLargeDataD1Ev` | | libSceNpCppWebApi | `_ZN3sce2Np9CppWebApi17TitleCloudStorage2V17DataApi12downloadDataEiRKNS4_23ParameterToDownloadDataERNS1_6Common21DownStreamTransactionINS8_12IntrusivePtrINS4_27DownloadDataResponseHeadersEEEEE` | | libSceNpCppWebApi | `_ZN3sce2Np9CppWebApi17TitleCloudStorage2V17DataApi23ParameterToDownloadData10initializeEPNS1_6Common10LibContextEPKci` | | libSceNpCppWebApi | `_ZN3sce2Np9CppWebApi17TitleCloudStorage2V17DataApi23ParameterToDownloadData9terminateEv` | | libSceNpCppWebApi | `_ZN3sce2Np9CppWebApi17TitleCloudStorage2V17DataApi23ParameterToDownloadDataC1Ev` | | libSceNpCppWebApi | `_ZN3sce2Np9CppWebApi17TitleCloudStorage2V17DataApi23ParameterToDownloadDataD1Ev` | | ... | 465 more | </details>
github-actions[bot] commented 2026-10-05 15:47:55 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-05T15:47:55Z.


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
#600 tools/package_release.py L13-14
#818 tools/package_release.py L13-14
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:5997951845 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/676#issuecomment-5997951845). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-05T15:47:55Z. --- <!-- 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 | |---|---|---|---| | #600 | `tools/package_release.py` [L13-14](https://github.com/boykopovar/AnyPS5/blob/481c85e7c9fa8ec39719f537a055b50aed50a865/tools/package_release.py#L13-L14) | | | | #818 | `tools/package_release.py` [L13-14](https://github.com/boykopovar/AnyPS5/blob/481c85e7c9fa8ec39719f537a055b50aed50a865/tools/package_release.py#L13-L14) | | |
oneandonlydean commented 2026-10-05 19:45:44 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-05T19:45:44Z.


@adriadam10 about testing on a title: PPSA21564 doesn't ship any of these modules (its sce_module folder only has libc.prx and libSceNpCppWebApi.prx), and its executable doesn't link any of them, so it can't exercise this change. I don't have Minecraft Legends, DOOM + DOOM II or Cyberpunk 2077 either, so I can't run a title that ships Cohtml, FMOD or Galaxy.

From the build side it looks fine: the full ctest passes on Linux with it merged together with the other open relinker and libkernel PRs. One related point: a title that keeps such a module outside sce_module, sce_modules and prx (Unity's Media/Modules, for example) wasn't converted before #716, so it relied on the host replacement. With #716 the title's own copy is found there too, so landing this after #716 covers that case. The new CONTRIBUTING rule is the maintainer's decision.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6001773048 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/676#issuecomment-6001773048). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-05T19:45:44Z. --- @adriadam10 about testing on a title: PPSA21564 doesn't ship any of these modules (its `sce_module` folder only has `libc.prx` and `libSceNpCppWebApi.prx`), and its executable doesn't link any of them, so it can't exercise this change. I don't have Minecraft Legends, DOOM + DOOM II or Cyberpunk 2077 either, so I can't run a title that ships Cohtml, FMOD or Galaxy. From the build side it looks fine: the full ctest passes on Linux with it merged together with the other open relinker and libkernel PRs. One related point: a title that keeps such a module outside `sce_module`, `sce_modules` and `prx` (Unity's `Media/Modules`, for example) wasn't converted before #716, so it relied on the host replacement. With #716 the title's own copy is found there too, so landing this after #716 covers that case. The new CONTRIBUTING rule is the maintainer's decision.
adriadam10 commented 2026-10-06 05:11:51 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-06T05:11:51Z.


@boykopovar I added libSceNpCppWebApi to this PR. I think it matters beyond the progress figure, because people keep putting work into code that a title shipping the module never runs:

  • Titles ship it themselves: Astro's Playroom has sce_module/libSceNpCppWebApi.prx, so since #10 the host library is left out of DT_NEEDED and never linked.
  • It only wraps system libraries we already implement on the host (libSceNpWebApi2 24/24, libSceHttp, libSceJson2, libSceRtc, libkernel, libSceLibcInternal). The real work is in NpWebApi2; the C++ layer runs as converted guest code.
  • Work on it so far: #631 (merged, IntrusivePtr) and Common::String before it, and #407 and #545 each add another ~560 lines to its Export.cpp. With 122 exports still marked not implemented, it is the biggest open item on the progress map, so it will keep drawing PRs until the rule says otherwise.

Merging this (or deciding against it) settles it for everyone. If you'd rather keep NpCppWebApi out of this PR, I'll take it out again and keep the other five.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6009788389 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/676#issuecomment-6009788389). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-06T05:11:51Z. --- @boykopovar I added `libSceNpCppWebApi` to this PR. I think it matters beyond the progress figure, because people keep putting work into code that a title shipping the module never runs: - Titles ship it themselves: Astro's Playroom has `sce_module/libSceNpCppWebApi.prx`, so since #10 the host library is left out of `DT_NEEDED` and never linked. - It only wraps system libraries we already implement on the host (`libSceNpWebApi2` 24/24, `libSceHttp`, `libSceJson2`, `libSceRtc`, `libkernel`, `libSceLibcInternal`). The real work is in NpWebApi2; the C++ layer runs as converted guest code. - Work on it so far: #631 (merged, IntrusivePtr) and `Common::String` before it, and #407 and #545 each add another ~560 lines to its `Export.cpp`. With 122 exports still marked not implemented, it is the biggest open item on the progress map, so it will keep drawing PRs until the rule says otherwise. Merging this (or deciding against it) settles it for everyone. If you'd rather keep NpCppWebApi out of this PR, I'll take it out again and keep the other five.
oneandonlydean commented 2026-10-06 06:18:24 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-06T06:18:24Z.


I've thought about this more, and I'm in favour of approving it and removing these, libSceNpCppWebApi included.

What I found:

  • Since #10 a title's own module takes precedence: GuestModuleBuilder leaves out any host dependency whose name matches a module the title ships, so for those titles our replacement is never loaded.
  • The replacements wouldn't carry a title that lacks its own copy either. Cohtml, Renoir and Galaxy throw on every call, FMOD declares a fraction of the real exports, and NpCppWebApi has 122 of 230 still throwing.
  • Against current main the head still merges cleanly. It's deletions plus the CONTRIBUTING line, and nothing outside the removed directories references them. The only remaining mention is the 0x115 entry in libSceSysmodule/ModuleTable.hpp, which maps the id to a name for the load counter and never loads a host library, so it's harmless.

Since this adds a CONTRIBUTING rule, I'll leave the merge to @boykopovar, but it has my support.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6010580835 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/676#issuecomment-6010580835). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-06T06:18:24Z. --- I've thought about this more, and I'm in favour of approving it and removing these, `libSceNpCppWebApi` included. What I found: - Since #10 a title's own module takes precedence: `GuestModuleBuilder` leaves out any host dependency whose name matches a module the title ships, so for those titles our replacement is never loaded. - The replacements wouldn't carry a title that lacks its own copy either. Cohtml, Renoir and Galaxy throw on every call, FMOD declares a fraction of the real exports, and NpCppWebApi has 122 of 230 still throwing. - Against current `main` the head still merges cleanly. It's deletions plus the CONTRIBUTING line, and nothing outside the removed directories references them. The only remaining mention is the `0x115` entry in `libSceSysmodule/ModuleTable.hpp`, which maps the id to a name for the load counter and never loads a host library, so it's harmless. Since this adds a CONTRIBUTING rule, I'll leave the merge to @boykopovar, but it has my support.
boykopovar commented 2026-10-06 08:53:17 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by boykopovar on 2026-10-06T08:53:17Z.


I thought they were system libraries. I will check today, if they are not system ones, we will delete them.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6012805770 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/676#issuecomment-6012805770). Originally posted by [boykopovar](https://github.com/boykopovar) on 2026-10-06T08:53:17Z. --- I thought they were system libraries. I will check today, if they are not system ones, we will delete them.
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!676
No description provided.