Repository navigation
refactor(libc): read the title's compiled SDK version through one helper - #26296
Merged
oneandonlydean merged 1 commit intoNov 23, 2026
Merged
oneandonlydean merged 1 commit into
oneandonlydean merged 1 commit into
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.
|
12 tasks done
12 tasks done
12 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
First step of #26276, as agreed there. Sixteen libraries each define their own function that returns the compiled SDK version of the running title, the 32-bit field at offset
0x10of the process parameters.libc/include/ApplicationHeap.hpp, which declaresApplicationProcessParameters_nid_no_patch, gets oneinline std::uint32_t ApplicationCompiledSdkVersion(). It keeps the parameters pointer in astatic, assceKernelGetCompiledSdkVersiondoes, so a caller that polls it does not search the image each time.sceKernelGetCompiledSdkVersionand returned0xffffffffon a failure that cannot happen with a local output; VdecSavc2 also savederrnoaround the call. They call the helper too, and the failure branches go.Http2did the same, but fix(libSceHttp2): copy response metadata through guest memory #25731 conflicts with it, so it is left for later.#24915 also changes the includes of
ApplicationHeap.hppand cannot be compared automatically because it conflicts withmain.git merge-treeof its head with this branch merges that file cleanly.33 lines added and 102 removed.
No change in behaviour.
Tested
Windows 11 (10.0.26300), WinLibs GCC 15.2.0 r7, Release.
ctest -R 'guest_content_export|convert_keycode|gnm_driver_compat1|guest_hmd($|_)|^guest_move$|np_commerce|guest_np_web_api|guest_screenshot|vr_tracker2|video_recording|sdec|application_?heap|process_?param', with its 27 build outputs fromtools/select_tests.py targets: 41 of 41 onmainefc6f9c3baand 41 of 41 with this change applied to it.tools/check_conventions.pypasses.tools/pr_overlap.py --branchfinds no overlap with the 2583 open pull requests apart from #24915, which it cannot compare (above).Not run: Linux and macOS.
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)