feat(libSceNKWebKit): implement the exports the 11.00 module answers with a constant #13936
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/13936"
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 edubox on 2026-10-31T13:12:06Z.
What
137 exports that
Export.cppdeclared as throwing stubs answer with a constant in the PS5 11.00libSceNKWebKit:xor eax,eax; retand return 0.mov eax,imm32; retand return it (values 8, 10, 88,0xffffffffand a few four-character codes).mov al,1; ret.src/ConstantExports.cppreproduces those values. The set was built by recomputing each declared symbol's NID, looking it up in the 11.00 dynamic symbol table and checking the body and size of every selected address against the image, so the claim is what those addresses do, not a guessed prototype.The declarations stay the no-parameter
intplaceholders from the inventory, so only the 32-bit return value is measured: a caller expecting a wider value, a pointer or a floating-point return is not covered, and neither are their arguments.docs/dev/debt/libSceNKWebKit.mddrops the 134 inventory rows that no longer throw (7,574 → 7,437 of the 8,703 listed declarations, 131 → 128 in the prototype-unknown group) and gains an entry with the measurement and that limit. Only 11.00 was measured.Tested
ctest -R 'nkwebkit|guest_nkwebkit': 9/9 passed, including the newnkwebkit_constants, which calls all 137 exports and compares each result with the measured constant.python3 tools/check_conventions.py --base origin/main: passed.python3 tools/pr_overlap.py --branch feat/nkwebkit-constant-exports --jobs 32:Export.cppand the debt inventory overlap textually with several open pull requests; none of the exports in this batch is implemented by them (checked their diffs), so the conflicts are in the stub list and the inventory table, not in behaviour.libSceNKWebKit(checked their relinker registries), so the 11.00 module is the only evidence.Checklist
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 MarcZX10 on 2026-10-31T13:36:21Z.
Review: APPROVED
Reviewed — looks good
I reviewed the 137 constant replacements and their test coverage; each replacement has a matching assertion, and I found no blocking source issue.
What I ran
Head
74e157f683cfdd4db2f276e6783ffaf48a80b6b6; PR basecd087bd12c258cf6dbb82e203bafd20d9fe2596c; the merge preview against currentmainwas clean. Environment: Linux, Python 3.11.2, GCC 12.2.0.Results
main.src/*.cppandtests/*.cpp; all 137 new definitions have matching assertions, and all 137 replace throwing stubs.Unedited conventions-check output
Findings
Blocking
Non-blocking
Sources
cd087bd12c258cf6dbb82e203bafd20d9fe2596cincludes allsrc/*.cppfiles and discoverstests/*.cpp:CMakeLists.txt.74e157f683cfdd4db2f276e6783ffaf48a80b6b6:ConstantExports.cppandConstants.cpp.Not verified