feat(libSceNpCppWebApi): cover the UserProfile models and remaining Common instantiations #9015
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/9015"
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 akkadbakkad89 on 2026-10-21T09:49:17Z.
What
Second slice of the
libSceNpCppWebApiimports a title dump (PPSA20397) ships without the module for: 87 further exports the registry records as used, plus the four previously-throwingContainerApiexports in scope (ParameterToGetContainer::{initialize,terminate,dtor}andgetContainer).All names resolve through aerolib, so each exported symbol recomputes to the NID the title imports. The classes are:
Commoninstantiations forUserProfileandCommunicationRestrictionStatustypes —IntrusivePtrcopy/deref/assign/destroy,Transaction/TransactionBaselifecycle andVector/Iterator/ConstIteratormembers — using the layouts and helpers established in the fileUserProfile::V1models —BasicProfile,BasicPresence,PersonalDetailandGet*Responseaccessors, plusParameterToGet{PublicProfiles,Friends,BlockingUsers}bookkeeping and theBasicProfileApi::getPublicProfilesverbInGameCatalog::V5::ContainerApi—ParameterToGetContainerlifecycle andgetContainerOffline semantics follow the file's documented model: request entry points and transaction
start/getResponse/sendData/readDatafail withSCE_NP_WEBAPI_ERROR_NOT_SIGNED_IN; parameter bookkeeping, constructors and destructors succeed without keeping state; response accessors,*IsSetqueries,Vector::begin/end, iterator dereference/compare and transactionabort/getId/operator=throw, because a failed request produces no response object and these model layouts are unverified. Everything is generic — no title IDs, paths or trace-specific inputs are special-cased.Overlap: the overlap report flags #8264, #8561 and #8843 because the same two files receive additions, and #8959 because this branch is stacked on it. The export sets are disjoint at the NID level — these 87 are the registry imports minus everything #8959 and #8561 cover, and none of the open PRs' patches mention any of these symbols.
Tested
g++ -fsyntax-onlyon the updatedExport.cpp(GCC, WSL)guest_np_cpp_web_api_stringharness compiled and run against the file: all sub-tests passtools/check_conventions.py --base origin/main: passtools/pr_overlap.py --branch feat/np-webapi-up-generics: textual file-tail collisions only; no shared exportstools/import_audit.py); the imports now resolve instead of failing the loader. The title itself still stops at the unrelated AGC stencil replay-safety gate before reaching these flowsChecklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by Ondra97 on 2026-10-22T04:30:59Z.
I opened #9612 to preserve aliased inputs in the existing
Common::String::appendandCommon::Vector::pushBackhelpers. Its tests add cases afterTestVectorPushBackCopiesStringContentinGuestNpCppWebApiString.cpp, the same insertion point used here and in #8959. The export changes are separate. I declared #9612 dependent on #8959 and #9015 and will reconcile the test insertion after their changes.