libSceContentSearch: the search calls are stubs (Cult of the Lamb imports four); empty-library implementation ready #3370
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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 screamm on 2026-10-11T09:15:50Z.
The nine libSceContentSearch exports (Export.cpp) beyond
Init/TermareNotImplemented_nid_no_patchstubs. Cult of the Lamb (PPSA06465) listssceContentSearchGetContentLastUpdateId,OpenMetadataByContentId,GetTotalContentSizeandGetNumOfContentas absent imports in its import audit (#2686).Fix branch ready:
screamm:feat/content-search-empty-library(b0bd9e0e, one commit onmain1c75f4d2). I cannot open it as a PR because of the intake check; anyone eligible is welcome to carry it, keeping the commit as is. The intake-closed #1564 took the same empty-library approach; this is a rewrite on currentmain.db_types.json(cc408367, lines 555 to 569) for the nine signatures; SharpProsperoInterop/Content/ContentSearch.cs(5dfdb4b0) for the enums, the four filter and sort layouts (added toSceTypes.hppwith size checks), the limit of 92 rows and the error codes;Platform/ContentLibrary.csfor how a caller uses the search.GetNumOfContent0,GetTotalContentSize0,SearchContent0 rows and never writes a row (a limit above 92 returns0x809D100A), the last update id is 0, every call beforeInitreturns0x809D1001; filters and sort conditions are validated against the enums and unknown values, null outputs and malformed arrays throw.OpenMetadata/OpenMetadataByContentIdthrow because neither source gives the not-found code, soCloseMetadata,GetMetadataFieldInfoandGetMetadataValuethrow for any id. TechnicalDebt records the update id choice, the unverified check order and the assumed content-search permission. The four ContentSearch entries leaveguest_content_unimplemented.guest_content_search(the library gets its own CMakeLists test block) covers the counts, searches with and without filters and sorts, the limit, the pre-init code, and every throw.Tested on Windows 11 Pro 26220, WinLibs MinGW-w64 GCC 15.2.0 r7, Ninja, Release,
BUILD_TESTING=ON, full build includinglibs:guest_content_search,guest_content_unimplemented,guest_content_export3/3;ctest -j8 -E "^agc_driver_|^video_out_flip"520/521, the one failure being the unrelatedguest_ampr_markersarena-overlap flake reported separately; withmain'sExport.cppthe new test fails;tools/check_conventions.py --base mainandgit diff --checkpass. Not run on Linux.Written with Claude Code assistance (implementation by a subagent, reviewed and validated in this session).
Imported from boykopovar/AnyPS5. Originally posted by blawesom on 2026-10-11T10:27:44Z.
Independent verification on Linux (the gap noted in the report): CachyOS, kernel 7.2.9, GCC 16.2.1, Ninja, Release,
BUILD_TESTING=ON.b0bd9e0eonto currentmain: applies cleanly, no conflicts.tools/check_conventions.pyandgit diff --checkpass.guest_content_search,guest_content_unimplementedandguest_content_exportpass.ctest -j8 -E "^agc_driver_|^video_out_flip"): 523/523 passed — including theguest_ampr_markersrun that flaked on the Windows pass.The rebased branch is available at
blawesom:verify/3370for anyone carrying — the commit is otherwise unchanged.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-11T16:00:32Z.
I carried my existing local implementation forward onto current main as #3724, preserving David’s author metadata. It matches the independently verified branch; the PR notes the shared ContentExport CMake hunk with #3721 and that a rebase may be needed depending on merge order.
Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-12T06:17:57Z.
Closing: no title run reaches the ContentSearch calls on main. Reopen with the log line when a title stops in one of them.