feat(libSceContentSearch): implement sceContentSearchOpenMetadata, CloseMetadata, GetMetadataFieldInfo, GetMetadataValue, SearchContent #1564
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1564"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by Deses on 2026-10-08T12:43:43Z.
What
Gives
sceContentSearchOpenMetadata,sceContentSearchCloseMetadata,sceContentSearchGetMetadataFieldInfo,sceContentSearchGetMetadataValueandsceContentSearchSearchContenttheir real signatures (they were declared without parameters) and implements the empty content library the host has.SearchContent(9 arguments, 3 on the stack) returns 0 withnumOfContent0 andlastUpdateId0 (when given). A limit above 92 returns0x809D100A. NullnumOfContent, a null column set, order-by list or info array with a non-zero length or limit, and calls beforeInitthrow, asInitandTermalready do.OpenMetadatathrows: no path is in the library, and the console's error for that is unknown. The id taken byCloseMetadata,GetMetadataFieldInfoandGetMetadataValuecan therefore never be valid, so they validate their arguments and throw.SceContentSearchContentInfoare not read or written, so no structures are added toSceTypes.hpp.CMakeLists.txtfor the library to register the test.Signatures and NIDs (recomputed with
tools/nid_names.py, all match):tools/ida/db_types.jsonlines 555-569ContentSearch.cslines 267-316 (signatures; limit 92 and0x809D100Aat lines 262-265;ContentLibrary.csreadsnumOfContentafter a successful call and builds an empty list for 0)G13HF1z-e4o, CloseMetadata-YbpaF0XS-I, GetMetadataFieldInfoEbNufIY0Zvc, GetMetadataValueruNe-FgCzO8, SearchContentTEW3IKxYfXc(also in the ChonkyStation4 and ps5rs NID lists)Unconfirmed: the console's result for an empty library (inferred from SharpProspero only), the update id value, and the error for a path or metadata id that is not in the library. shadPS4, OpenOrbis and Kyty have no implementation of these calls.
Tested
Windows 11, GCC 15.2.0 (WinLibs), Release, build of this branch's worktree rebased on current upstream/main (full build,
libstarget, ctest):ctest -R guest_content_searchpasses (empty search result and update id, limit 92 accepted and 93 rejected without touching the output, argument checks, calls beforeInitand afterTermthrow,OpenMetadataandCloseMetadatathrow).check_conventions.pyandcheck_test_registration.pyclean. No title tested.CI: the upstream runs for this head are waiting for approval (#1631). The same Build workflow ran on the fork for head
79f12242: https://github.com/Deses/AnyPS5/actions/runs/37804522863, Linux and Windows (full build,libs, ctest) green.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-09T08:57:25Z.
Same as #1582.
Pull request closed