Repository navigation
feat(libSceCesCs): build libSceCesCs-module from the libSceCesCs source - #5425
Merged
oneandonlydean merged 1 commit intoOct 13, 2026
Merged
Conversation
Titles that link the character conversion library under its module name need libSceCesCs-module.prx, which nothing built: Void Terrarium (PPSA03061, boykopovar#5055) and Call of Duty: Black Ops (PPSA34501, boykopovar#5389) were run with a copy of libSceCesCs.prx under that name. Both libraries are now built from the same source by add_sce_ces_library, as libScePsml and libSceFont-module are, and guest_ces_module runs the CesCs test against the module-named library. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Oct 13, 2026
Contributor
|
Confirmed on Void Terrarium (PPSA03061): with this PR plus #5153, |
Merged
7 tasks done
Contributor
Author
This was referenced Oct 13, 2026
Contributor
|
Confirmed with Call of Duty: Black Ops (PPSA34501). With this PR the build now makes libSceCesCs-module.prx itself, so the manual copy is no longer needed. |
9 tasks done
This was referenced Oct 14, 2026
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
Titles that import the character conversion library under its module name need
libSceCesCs-module.prx, and nothing built it. Two reporters copiedlibSceCesCs.prxunder that name:libSceCesCs.prxaslibSceCesCs-module.prx: the title imports Ces under that module name and the build does not make that file."libs/search list referenceslibSceCesCs-module.prx, and continued with a copy of the library under that name.The Teardown report (PPSA15246, #3701) lists imports of the module named
libSceCesCs-moduletoo.libSceCesCs-moduleis a system library that the title lists as needed. It is not a module the title ships, so it is never insce_module/(the point raised on #3824). The relinker keeps that needed name and binds the Ces imports to it.ImportModuleignores-moduleonly to match an import's declared module (libSceCesCs) to that dependency, as it does forlibSceFont-module.prx. So the loader looks forlibSceCesCs-module.prx.#3824 first added this target. adriadam10 asked to "show that PPSA15246 (or another title) loads
libSceCesCs-module, with a test that uses the target, or drop it", and it was dropped. This PR brings it back with the reports above and a test that uses it.Both libraries are now built from the same source by
add_sce_ces_library(libSceCesCs/CesLibrary.cmake). This followslibSceFont-module(#139) andlibScePsml(#2412):libSceCesCs-module/CMakeLists.txtincludes that file.libstarget builds and NID-patches the new directory like every other one.tools/progress.pycounts it as sharinglibSceCesCs's sources.guest_ces_moduleruns the existingGuestCes.cppagainstlibSceCesCs-module.Renaming such a needed library to its base library in the relinker would be an alternative. This PR keeps the per-library pattern of #139 and #2412.
@alexpournaras, @amiraction0938: if you can, please check that your title loads the built
libSceCesCs-module.prxwithout the manual copy.Tested
Ubuntu 24.04, GCC 13.3, Release with
BUILD_TESTING=ON, onmaindacd785. Locally, the libusb lines were removed fromCMakeLists.txt, because the libusb submodule isn't checked out here.guest_ces_modulefails to link onmain:cannot find -llibSceCesCs-module. With the change,guest_cesandguest_ces_modulepass, 3 runs out of 3.main, nolibs/libSceCesCs-module.prxis produced. With the change it is. Afternid_patcher, it exports the same 5 NIDs aslibSceCesCs.prx, with SONAMElibSceCesCs-module.prx.tests/PatchedLibraries.cpp, the source of thepatched_librariestest, opens the patchedlibc.prx,libkernel.prx,libSceCesCs.prxandlibSceCesCs-module.prxwithRTLD_NOW: 4 loaded, 0 failed. Thepatched_librariestest itself needs every library, andlibSceUsbddoesn't build here without the libusb submodule.tools/progress.py --compareagainstmain: System libraries +0.0%, andlibSceCesCs-moduleis listed as sharinglibSceCesCs's sources.PATHline for the test is the oneguest_cesuses.maindacd785 plus this PR, feat(ces): implement sceCesUcsProfileInitSJis1997Cp932 #5153, feat(libSceNgs2): support custom rack module id 0x1d (UserFx) and legacy callback dispatch #5140, feat(libSceAgc): ignore address argument on non-sample-dump events in sceAgcDcbEventWrite #5219 and fix(libc): accept guest thread atexit dso on Windows #5155 (#5055 comment).ZiDCxUUGbec(sceCesUcsProfileInitSJis1997Cp932) resolves fromlibSceCesCs-module.prx, and the game reaches its title screen. With feat(ces): implement sceCesUcsProfileInitSJis1997Cp932 #5153 alone it still stops onunresolved ELF import ZiDCxUUGbec.libSceCesCs/Export.cpp,GuestCes.cppand the CesCs debt file. It merges cleanly with this, and its new export then lands in both libraries.tools/check_conventions.pyfrommainpasses with this title and body.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)mainc422b57 stops at start-up and does not name the stop). Also Void Terrarium PPSA03061 (issue Void Terrarium (PPSA03061) crashes on unresolved libc.prx import BKSCW2bCACA #5055, no Game bring-up discussion), confirmed by p3n1cillin: with feat(ces): implement sceCesUcsProfileInitSJis1997Cp932 #5153 itsZiDCxUUGbecimport resolves only through this PR. It also needs feat(libSceNgs2): support custom rack module id 0x1d (UserFx) and legacy callback dispatch #5140 and feat(libSceAgc): ignore address argument on non-sample-dump events in sceAgcDcbEventWrite #5219 to reach its title screen; fix(libc): accept guest thread atexit dso on Windows #5155 was not needed for start-up.🤖 Generated with Claude Code