Skip to content

feat(libSceCesCs): build libSceCesCs-module from the libSceCesCs source - #5425

Merged
oneandonlydean merged 1 commit into
boykopovar:mainfrom
SandstromPL:feat/ces-module-library
Oct 13, 2026
Merged

oneandonlydean merged 1 commit into
boykopovar:mainfrom
SandstromPL:feat/ces-module-library

Conversation

@SandstromPL

@SandstromPL SandstromPL commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

What

Titles that import the character conversion library under its module name need libSceCesCs-module.prx, and nothing built it. Two reporters copied libSceCesCs.prx under that name:

The Teardown report (PPSA15246, #3701) lists imports of the module named libSceCesCs-module too.

libSceCesCs-module is a system library that the title lists as needed. It is not a module the title ships, so it is never in sce_module/ (the point raised on #3824). The relinker keeps that needed name and binds the Ces imports to it. ImportModule ignores -module only to match an import's declared module (libSceCesCs) to that dependency, as it does for libSceFont-module.prx. So the loader looks for libSceCesCs-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 follows libSceFont-module (#139) and libScePsml (#2412):

  • libSceCesCs-module/CMakeLists.txt includes that file.
  • The libs target builds and NID-patches the new directory like every other one.
  • tools/progress.py counts it as sharing libSceCesCs's sources.
  • guest_ces_module runs the existing GuestCes.cpp against libSceCesCs-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.prx without the manual copy.

Tested

Ubuntu 24.04, GCC 13.3, Release with BUILD_TESTING=ON, on main dacd785. Locally, the libusb lines were removed from CMakeLists.txt, because the libusb submodule isn't checked out here.

Checklist

🤖 Generated with Claude Code

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>
@github-actions

Copy link
Copy Markdown

Progress report (dacd785 → 299a736)

➖ System libraries: 88.15% (+0.0%)

🔗 1 now sharing sources
Library Name
libSceCesCs-module libSceCesCs

@p3n1cillin

Copy link
Copy Markdown
Contributor

Confirmed on Void Terrarium (PPSA03061): with this PR plus #5153, ZiDCxUUGbec (sceCesUcsProfileInitSJis1997Cp932) resolves from libSceCesCs-module.prx and the game boots further. Details in #5055 (comment)

@SandstromPL

Copy link
Copy Markdown
Contributor Author

Thanks for testing it on your own dump, and for tracing the whole chain in #5055. That answers the "show a title loads libSceCesCs-module" condition from #3824. I've added your run to the description.

@alexpournaras

Copy link
Copy Markdown
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.

@oneandonlydean
oneandonlydean merged commit bf8dc61 into boykopovar:main Oct 13, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants