feat(libSceSystemService): handle parameter 100 in sceSystemServiceParamGetInt #9591

Closed
christophermonterocortes-cr wants to merge 1 commit from upstream-pr/9591 into main
christophermonterocortes-cr commented 2026-10-22 03:33:26 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by christophermonterocortes-cr on 2026-10-22T03:33:26Z.


What

In core/libs/prx/libSceSystemService/Export.cpp, handle parameter 100 in sceSystemServiceParamGetInt by writing 0 and returning SYSTEM_SERVICE_OK.

  • Adds SYSTEM_SERVICE_PARAM_ID_100 = 100 in SystemService.hpp.
  • Handles parameter 100 in sceSystemServiceParamGetInt with default value 0, narrowing the registry-backed throwing range from 100–111 to 101–111.
  • Adds unit test coverage in core/libs/tests/GuestSystemServiceLanguage.cpp verifying sceSystemServiceParamGetInt(SYSTEM_SERVICE_PARAM_ID_100, &value) returns SYSTEM_SERVICE_OK and writes 0.
  • Updates docs/dev/debt/libSceSystemService.md to document that parameter 100 writes 0.

Tested

  • python tools/check_conventions.py --base upstream/main: All conventions checks passed.
  • python -m unittest discover -s tools/tests -p "test_check_conventions*.py": all passed.

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
  • Fixes: #9458
  • Unblocks: PPSA11386
  • GPUs tested: n/a
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4961681900 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9591). Originally posted by [christophermonterocortes-cr](https://github.com/christophermonterocortes-cr) on 2026-10-22T03:33:26Z. --- ### What In `core/libs/prx/libSceSystemService/Export.cpp`, handle parameter 100 in `sceSystemServiceParamGetInt` by writing 0 and returning `SYSTEM_SERVICE_OK`. - Adds `SYSTEM_SERVICE_PARAM_ID_100 = 100` in `SystemService.hpp`. - Handles parameter 100 in `sceSystemServiceParamGetInt` with default value 0, narrowing the registry-backed throwing range from 100–111 to 101–111. - Adds unit test coverage in `core/libs/tests/GuestSystemServiceLanguage.cpp` verifying `sceSystemServiceParamGetInt(SYSTEM_SERVICE_PARAM_ID_100, &value)` returns `SYSTEM_SERVICE_OK` and writes 0. - Updates `docs/dev/debt/libSceSystemService.md` to document that parameter 100 writes 0. ### Tested - `python tools/check_conventions.py --base upstream/main`: All conventions checks passed. - `python -m unittest discover -s tools/tests -p "test_check_conventions*.py"`: all passed. ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [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] Fixes: #9458 - [x] Unblocks: PPSA11386 - [x] GPUs tested: n/a - [x] AI-assisted: yes
MarcZX10 commented 2026-10-22 03:41:44 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-22T03:41:44Z.

Review: CHANGES_REQUESTED


The implementation is internally consistent and the test covers the returned status, output value, and removal of parameter 100 from the throwing registry-backed range. The debt entry is narrowed accordingly. The open issue #9458 says the parameter's meaning and the console's answer are unknown; the report that a title once continued when the old default path wrote zero does not establish that zero is the correct general behavior. Please link primary evidence for this value (for example, a console observation or authoritative SDK/source evidence) before treating the return as implemented. Otherwise, keep the export throwing and record the investigation separately rather than converting the title's observed call into a general default.

The checklist also says Unblocks: PPSA11386 without a Game bring-up discussion number. The repository requires both the title ID and discussion link for this field. Please add the relevant discussion or change the checklist to none if this does not unblock a reported stop.

Eligibility, conventions, intake, labels, and report checks pass. Product build/test jobs are skipped. The convention unit tests listed in the description are author-reported; I did not run them locally.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5608995371 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9591#pullrequestreview-5608995371). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-22T03:41:44Z. **Review:** CHANGES_REQUESTED --- The implementation is internally consistent and the test covers the returned status, output value, and removal of parameter 100 from the throwing registry-backed range. The debt entry is narrowed accordingly. The open issue #9458 says the parameter's meaning and the console's answer are unknown; the report that a title once continued when the old default path wrote zero does not establish that zero is the correct general behavior. Please link primary evidence for this value (for example, a console observation or authoritative SDK/source evidence) before treating the return as implemented. Otherwise, keep the export throwing and record the investigation separately rather than converting the title's observed call into a general default. The checklist also says `Unblocks: PPSA11386` without a Game bring-up discussion number. The repository requires both the title ID and discussion link for this field. Please add the relevant discussion or change the checklist to `none` if this does not unblock a reported stop. Eligibility, conventions, intake, labels, and report checks pass. Product build/test jobs are skipped. The convention unit tests listed in the description are author-reported; I did not run them locally.
MarcZX10 commented 2026-10-22 04:10:05 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-22T04:10:05Z.

Review: CHANGES_REQUESTED


The current implementation makes sceSystemServiceParamGetInt(100) return success and write zero, but issue #9458 explicitly says the console meaning and answer for parameter 100 are unknown. The title continuing after the previous default path wrote zero establishes one observed caller outcome, not the general console contract this export must implement. Please provide primary evidence for the returned value (a console observation or authoritative SDK/source evidence), or keep the parameter throwing and leave the investigation unresolved until that evidence exists. The unit test currently codifies the unsupported value, so it should change with the implementation/evidence.

The checklist has Unblocks: PPSA11386 without the required Game bring-up discussion. The matching discussion is #6722 (007 First Light, PPSA11386); please list Unblocks: PPSA11386 #6722 if this is intended to fix the reported stop, otherwise none.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5609154166 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9591#pullrequestreview-5609154166). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-22T04:10:05Z. **Review:** CHANGES_REQUESTED --- The current implementation makes `sceSystemServiceParamGetInt(100)` return success and write zero, but issue #9458 explicitly says the console meaning and answer for parameter 100 are unknown. The title continuing after the previous default path wrote zero establishes one observed caller outcome, not the general console contract this export must implement. Please provide primary evidence for the returned value (a console observation or authoritative SDK/source evidence), or keep the parameter throwing and leave the investigation unresolved until that evidence exists. The unit test currently codifies the unsupported value, so it should change with the implementation/evidence. The checklist has `Unblocks: PPSA11386` without the required Game bring-up discussion. The matching discussion is #6722 (007 First Light, PPSA11386); please list `Unblocks: PPSA11386 #6722` if this is intended to fix the reported stop, otherwise `none`.
Scramblrrrr commented 2026-10-22 07:49:06 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Scramblrrrr on 2026-10-22T07:49:06Z.


Windows paired cross-test of #9591 head1c445538d, integrated on main d6eafa54d (cc9da1ac6, later b36dea0ab with an unrelated host-import fix). guest_system_service_language passes with the fix, fails at the registry-backed parameter100 throw after rebuilding only libSceSystemService with main's Export.cpp, and passes after exact positive restoration (0.10s). Fixture EXE SHA256 stayed unchanged and the source hash was restored. The broader final integration has177passing native checks plus2expected skips; this is not a standalone full-suite run of this PR.

Console provenance for the zero result is reported in #7965 (PS5 firmware13.40, measured2026-10-19 inside a retail process); those are @frankea's measurements, not ours. Please coordinate the overlapping parameter100 case. Current 007 Windows startup gets past these boot-library calls and is still compiling changed pipelines; no menu/gameplay/FPS claim yet.

AI-assisted: yes (Codex). Raw title data stays local.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6335612792 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9591#issuecomment-6335612792). Originally posted by [Scramblrrrr](https://github.com/Scramblrrrr) on 2026-10-22T07:49:06Z. --- Windows paired cross-test of #9591 head1c445538d, integrated on main d6eafa54d (cc9da1ac6, later b36dea0ab with an unrelated host-import fix). `guest_system_service_language` passes with the fix, fails at the registry-backed parameter100 throw after rebuilding only libSceSystemService with main's Export.cpp, and passes after exact positive restoration (0.10s). Fixture EXE SHA256 stayed unchanged and the source hash was restored. The broader final integration has177passing native checks plus2expected skips; this is not a standalone full-suite run of this PR. Console provenance for the zero result is reported in #7965 (PS5 firmware13.40, measured2026-10-19 inside a retail process); those are @frankea's measurements, not ours. Please coordinate the overlapping parameter100 case. Current 007 Windows startup gets past these boot-library calls and is still compiling changed pipelines; no menu/gameplay/FPS claim yet. AI-assisted: yes (Codex). Raw title data stays local.
MarcZX10 commented 2026-10-22 10:02:03 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-22T10:02:03Z.

Review: CHANGES_REQUESTED


The new evidence resolves my earlier question about the value: #7965 records a PS5 firmware 13.40 measurement from inside GT7 in which parameter 100 returned success and wrote 0. The independent Windows report also gives a red/green test on integrated current main d6eafa54d (the exact fixture passes with this case and fails at the old throwing range without it). The implementation/test/debt changes in this PR match that measured case, and exact-head conventions plus git diff --check pass. Hosted policy checks pass; product build jobs are skipped. I did not rerun runtime tests locally.

There is a direct duplicate implementation with open #7965: both add SYSTEM_SERVICE_PARAM_ID_100, return 0, remove 100 from the throwing range, and update the same test/debt entries. Please coordinate with Frankea and the #7965 reviewers which PR lands first, and leave only one implementation of this case on main. If #9591 lands first, #7965 should drop/rebase its duplicate; if #7965 lands first, close this PR or make it a distinct remaining fix. Record a Depends on only if the agreed plan truly stacks one on the other.

The current head is 100 commits behind main, so rebase and rerun the focused test after the integration order is settled. For the title checklist, the matching Game bring-up discussion is #5714 (007 First Light, PPSA11386); #6722 is Yakuza 0. Please link Unblocks: PPSA11386 #5714 if this resolves the parameter-100 boot stop and update that discussion's PR list. Keep Fixes: #9458 only while the issue still describes this exact remaining stop; #9459 has already addressed its earlier NetCtl stop.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5612465839 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9591#pullrequestreview-5612465839). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-22T10:02:03Z. **Review:** CHANGES_REQUESTED --- The new evidence resolves my earlier question about the value: #7965 records a PS5 firmware 13.40 measurement from inside GT7 in which parameter 100 returned success and wrote 0. The independent Windows report also gives a red/green test on integrated current main `d6eafa54d` (the exact fixture passes with this case and fails at the old throwing range without it). The implementation/test/debt changes in this PR match that measured case, and exact-head conventions plus `git diff --check` pass. Hosted policy checks pass; product build jobs are skipped. I did not rerun runtime tests locally. There is a direct duplicate implementation with open #7965: both add `SYSTEM_SERVICE_PARAM_ID_100`, return 0, remove 100 from the throwing range, and update the same test/debt entries. Please coordinate with Frankea and the #7965 reviewers which PR lands first, and leave only one implementation of this case on main. If #9591 lands first, #7965 should drop/rebase its duplicate; if #7965 lands first, close this PR or make it a distinct remaining fix. Record a `Depends on` only if the agreed plan truly stacks one on the other. The current head is 100 commits behind `main`, so rebase and rerun the focused test after the integration order is settled. For the title checklist, the matching Game bring-up discussion is #5714 (007 First Light, PPSA11386); #6722 is Yakuza 0. Please link `Unblocks: PPSA11386 #5714` if this resolves the parameter-100 boot stop and update that discussion's PR list. Keep `Fixes: #9458` only while the issue still describes this exact remaining stop; #9459 has already addressed its earlier NetCtl stop.

Pull request closed

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!9591
No description provided.