feat(ces): implement sceCesUcsProfileInitSJis1997Cp932 #5153

Merged
Kikoarl merged 1 commit from upstream-pr/5153 into main 2026-10-14 01:27:11 +00:00
Kikoarl commented 2026-10-13 13:01:49 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Kikoarl on 2026-10-13T13:01:49Z.


What

Implement sceCesUcsProfileInitSJis1997Cp932 in libSceCesCs.

The function receives a pointer to a profile sheet, validates that it is non-null, and returns the sheet pointer to initialize Shift-JIS / CP932 profiles. The signature matches the Orbital IDA type database (union* sceCesUcsProfileInitSJis1997Cp932(SceCesUcsProfileSheet* sheet)).

Fixes fatal unresolved ELF import during Void Terrarium (PPSA03061) startup:

FAIL: unresolved ELF import ZiDCxUUGbec
GetLastError: 127 - The specified procedure could not be found.

Unblocks: PPSA03061 #5055

Tested

  • Linux x86_64, GCC 15: built libSceCesCs.prx and guest_ces_tests in RAM (/tmp/anyps5_build).
  • Confirmed dynamic export ZiDCxUUGbec in libSceCesCs.prx via nm -D.
  • Added test coverage in core/libs/tests/GuestCes.cpp verifying non-null sheet return, null sheet rejection, and context initialization.
  • Ran test guest_ces (100% passed).
  • python3 tools/check_conventions.py --base origin/main --head HEAD passed with 0 errors.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Unblocks: PPSA03061 #5055
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4843630222 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5153). Originally posted by [Kikoarl](https://github.com/Kikoarl) on 2026-10-13T13:01:49Z. --- ### What Implement `sceCesUcsProfileInitSJis1997Cp932` in `libSceCesCs`. The function receives a pointer to a profile sheet, validates that it is non-null, and returns the sheet pointer to initialize Shift-JIS / CP932 profiles. The signature matches the Orbital IDA type database (`union* sceCesUcsProfileInitSJis1997Cp932(SceCesUcsProfileSheet* sheet)`). Fixes fatal unresolved ELF import during Void Terrarium (`PPSA03061`) startup: ```text FAIL: unresolved ELF import ZiDCxUUGbec GetLastError: 127 - The specified procedure could not be found. ``` Unblocks: PPSA03061 #5055 ### Tested - Linux x86_64, GCC 15: built `libSceCesCs.prx` and `guest_ces_tests` in RAM (`/tmp/anyps5_build`). - Confirmed dynamic export `ZiDCxUUGbec` in `libSceCesCs.prx` via `nm -D`. - Added test coverage in `core/libs/tests/GuestCes.cpp` verifying non-null sheet return, null sheet rejection, and context initialization. - Ran test `guest_ces` (100% passed). - `python3 tools/check_conventions.py --base origin/main --head HEAD` passed with 0 errors. ### Checklist - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Unblocks: PPSA03061 #5055 - [x] AI-assisted: yes
github-actions[bot] commented 2026-10-13 13:02:32 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-13T13:02:32Z.


Progress report (0f2683c → e5f0938)

📈 System libraries: 87.83% (+0.01%, +1 implemented functions)

✅ 1 implemented
Library Name
libSceCesCs sceCesUcsProfileInitSJis1997Cp932
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6146159926 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5153#issuecomment-6146159926). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-13T13:02:32Z. --- <!-- progress-report --> ### Progress report (0f2683c → e5f0938) 📈 **System libraries**: 87.83% (+0.01%, +1 implemented functions) <details> <summary>✅ 1 implemented</summary> | Library | Name | | - | - | | libSceCesCs | `sceCesUcsProfileInitSJis1997Cp932` | </details>
xXPBSXx commented 2026-10-13 15:35:27 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-13T15:35:27Z.


Windows test: head e5f093840 merged onto current main 60fb61870, together with 9 other open pull requests in one build (the merges were conflict-free); a failure would have been bisected per PR. Windows 10, MinGW GCC (WinLibs), Ninja Release, -j2: full build 0 errors; ctest for the tests this change adds or touches: guest_ces passed; python tools/check_conventions.py --base upstream/main passed for the combined tree. I did not run the new tests against main without the change.

AI-assisted (Claude Code).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6149215158 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5153#issuecomment-6149215158). Originally posted by [xXPBSXx](https://github.com/xXPBSXx) on 2026-10-13T15:35:27Z. --- Windows test: head `e5f093840` merged onto current `main` `60fb61870`, together with 9 other open pull requests in one build (the merges were conflict-free); a failure would have been bisected per PR. Windows 10, MinGW GCC (WinLibs), Ninja Release, `-j2`: full build 0 errors; ctest for the tests this change adds or touches: guest_ces passed; `python tools/check_conventions.py --base upstream/main` passed for the combined tree. I did not run the new tests against `main` without the change. AI-assisted (Claude Code).
Kikoarl commented 2026-10-13 17:38:51 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Kikoarl on 2026-10-13T17:38:51Z.


Thanks @xXPBSXx for the Windows build and ctest verification.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6151498784 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5153#issuecomment-6151498784). Originally posted by [Kikoarl](https://github.com/Kikoarl) on 2026-10-13T17:38:51Z. --- Thanks @xXPBSXx for the Windows build and ctest verification.
p3n1cillin commented 2026-10-13 20:04:38 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by p3n1cillin on 2026-10-13T20:04:38Z.


Tested on Void Terrarium (PPSA03061): the export works, but on its own the game still stops on unresolved ELF import ZiDCxUUGbec. The title's DT_NEEDED is libSceCesCs-module.prx, so it also needs #5425. With both PRs the import resolves; details in https://github.com/boykopovar/AnyPS5/issues/5055#issuecomment-6154121860

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6154122341 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5153#issuecomment-6154122341). Originally posted by [p3n1cillin](https://github.com/p3n1cillin) on 2026-10-13T20:04:38Z. --- Tested on Void Terrarium (PPSA03061): the export works, but on its own the game still stops on `unresolved ELF import ZiDCxUUGbec`. The title's `DT_NEEDED` is `libSceCesCs-module.prx`, so it also needs #5425. With both PRs the import resolves; details in https://github.com/boykopovar/AnyPS5/issues/5055#issuecomment-6154121860
github-actions[bot] commented 2026-10-13 22:12:27 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-13T22:12:27Z.


Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.

Pull request Conflicting files (lines on main) Same exports Same new files
#5515 core/libs/tests/GuestCes.cpp L108
docs/dev/debt/libSceCesCs.md L5
#5546 core/libs/prx/libSceCesCs/Export.cpp L117
docs/dev/debt/libSceCesCs.md L5
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6156293871 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5153#issuecomment-6156293871). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-13T22:12:27Z. --- <!-- pr-overlap --> Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in **Depends on**. | Pull request | Conflicting files (lines on `main`) | Same exports | Same new files | |---|---|---|---| | #5515 | `core/libs/tests/GuestCes.cpp` [L108](https://github.com/boykopovar/AnyPS5/blob/2e7ab67e8dc484013e0d55f93988875f9bf76567/core/libs/tests/GuestCes.cpp#L108)<br>`docs/dev/debt/libSceCesCs.md` [L5](https://github.com/boykopovar/AnyPS5/blob/2e7ab67e8dc484013e0d55f93988875f9bf76567/docs/dev/debt/libSceCesCs.md#L5) | | | | #5546 | `core/libs/prx/libSceCesCs/Export.cpp` [L117](https://github.com/boykopovar/AnyPS5/blob/2e7ab67e8dc484013e0d55f93988875f9bf76567/core/libs/prx/libSceCesCs/Export.cpp#L117)<br>`docs/dev/debt/libSceCesCs.md` [L5](https://github.com/boykopovar/AnyPS5/blob/2e7ab67e8dc484013e0d55f93988875f9bf76567/docs/dev/debt/libSceCesCs.md#L5) | | |
alexpournaras commented 2026-10-13 22:42:07 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by alexpournaras on 2026-10-13T22:42:07Z.


Confirmed with Call of Duty: Black Ops (PPSA34501).
Without sceCesUcsProfileInitSJis1997Cp932 the game does not start:

FAIL: unresolved ELF import ZiDCxUUGbec

With this PR applied that import resolves, and the game moves further.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6156763160 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5153#issuecomment-6156763160). Originally posted by [alexpournaras](https://github.com/alexpournaras) on 2026-10-13T22:42:07Z. --- Confirmed with [Call of Duty: Black Ops (PPSA34501)](https://github.com/boykopovar/AnyPS5/discussions/5389). Without sceCesUcsProfileInitSJis1997Cp932 the game does not start: `FAIL: unresolved ELF import ZiDCxUUGbec` With this PR applied that import **resolves**, and the game moves further.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!5153
No description provided.