feat(libSceSystemService): implement GPU load emulation mode and suspend confirmation dialog flag #12285
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/12285"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-28T07:14:01Z.
What
Implements two groups of pending libSceSystemService exports that had no behaviour and threw
NotImplemented_nid_no_patch:sceSystemServiceSetGpuLoadEmulationMode,sceSystemServiceGetGpuLoadEmulationMode,sceShellCoreUtilSetGpuLoadEmulationMode,sceShellCoreUtilGetGpuLoadEmulationMode,sceShellCoreUtilSetGpuLoadEmulationModeByAppId,sceShellCoreUtilGetGpuLoadEmulationModeByAppId. One atomic mode (0 off, 1 normal, per SharpProspero); the getter returns the mode itself. Other modes and other app IDs throw.sceSystemServiceEnableSuspendConfirmationDialog,sceSystemServiceDisableSuspendConfirmationDialog,sceShellCoreUtilGetSuspendConfirmationDialogFlag(atomic flag, starts enabled, running title only).Both are listed under Silent stubs in
docs/dev/debt/libSceSystemService.md(the host has no GPU throttling and no shell dialog), with the assumptions stated (initial values, shared mode) and the public sources cited (SharpProspero, OpenOrbis, shadPS4 for prototypes and behaviour only; no code copied).Skipped on purpose: the other ~500 pending exports have no public prototype or documented behaviour (OpenOrbis and shadPS4 list them as argument-less stubs), so they stay untouched. Exports already covered by open PRs (screen saver, eye-to-eye adjusted, suspend notification, streaming/remote play queries, USB storage, splash/player dialog stubs) were not touched.
Two commits, one per group.
Tested
guest_system_service,guest_system_service_language,guest_system_service_time_zoneand the threeguest_system_service_app_title_id_*tests pass;GuestSystemService.cppgains tests for both groups, including 4-thread concurrent set/get.tools/check_conventions.py --base upstream/main, the public header audit andgit diff --checkpass.Checklist
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-02T04:58:04Z.
Review: COMMENTED
Reviewed — requested test cleanup is in the head, no open point
The throw assertions oneandonlydean asked to drop are gone from the test file at this head, and the implementation throws they pointed at are still in Export.cpp.
What I ran
Live head:
d9ca4b6b36(OPEN, same as the batch file). Read the issue comments, review comments and reviews withgh api(repos/boykopovar/AnyPS5/issues|pulls/12285/...). Read files withgit -C /marc/AnyPS5 show d9ca4b6b…:<path>and grep forThrowsandNotImplemented. Read the hosted check rollup withgh pr view. Nothing was built or run.Results
Findings
Throwschecks for modes 2, 3 and 0xffffffff and for app IDs other than the running title. At this headTestSuspendConfirmationDialog(GuestSystemService.cpp:113-134) andTestGpuLoadEmulationMode(L136-162) contain noThrowscheck. The remainingThrowsuses (L194-208) are the launch and PSM tests and were not part of the request. Done.TestRunningAppAnswer(L64-73) still queries other app IDs, but it expects a result code, not a throw.Sources
github.com/boykopovar/AnyPS5@d9ca4b6b36/core/libs/tests/GuestSystemService.cpp (L113-L162)github.com/boykopovar/AnyPS5@d9ca4b6b36/core/libs/tests/GuestSystemService.cpp (L64-L73)github.com/boykopovar/AnyPS5@d9ca4b6b36/core/libs/prx/libSceSystemService/Export.cpp (L299-L299)github.com/boykopovar/AnyPS5@d9ca4b6b36/core/libs/prx/libSceSystemService/Export.cpp (L306-L306)github.com/boykopovar/AnyPS5@d9ca4b6b36/core/libs/prx/libSceSystemService/Export.cpp (L327-L327)Not verified