feat(errordialog): implement the libSceErrorDialog state machine #558
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/558"
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 Phi1ow on 2026-10-04T20:34:47Z.
What
The six
libSceErrorDialogexports were throwing stubs. They now implement the dialog'sNONE -> INITIALIZED -> RUNNING -> FINISHEDstate machine without a visible window, so a titlethat opens an error dialog and waits for it never blocks:
sceErrorDialogInitialize—NONE -> INITIALIZED;0x80ED0002if already initialized.sceErrorDialogOpen(param)— requiresINITIALIZEDorFINISHED(else0x80ED0005),checks the 16-byte parameter and its
sizefield (else0x80ED0003), thenRUNNING.sceErrorDialogUpdateStatus— turnsRUNNINGintoFINISHEDand returns the status.sceErrorDialogGetStatus— returns the status.sceErrorDialogClose—RUNNING -> FINISHED;0x80ED0005when nothing is running.sceErrorDialogTerminate—-> NONE;0x80ED0001when not initialized.Re-opening is allowed once a previous dialog has finished. The status values and error codes
are the documented SCE error-dialog ones; the structure mirrors the existing
libSceMsgDialog.Adds a
CMakeLists.txtso the library can carry its guest test.Tested
New test
core/libs/tests/GuestErrorDialog.cpp(registered asguest_error_dialog) drivesthe whole machine: the not-initialized and already-initialized errors, the state and parameter
checks of
open,open/update/close, and re-open after finish.Built with MinGW-w64 GCC 15.2.0 (the CI toolchain) on Windows 11;
ctest -R guest_error_dialogpasses. On
mainthe six functions thrownot implemented, so the test aborts without thechange.
Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-04T21:19:42Z.
Thanks. The status values, the 0x80ED0001/2/3/5 error codes and the 16-byte parameter (size, error code, user id, reserved) match the SDK definitions, and the state machine is consistent with
libSceMsgDialog.Two things before it goes in:
sceErrorDialogOpen(likelibSceMsgDialoglogs its text) would make these errors visible when a title hits one.The CI run on this PR still needs approval; I'll check it once it has run.
Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-04T22:32:39Z.
Progress report (
fc32593→6571ace)📈 System libraries: 78.06% (+0.19%, +6 implemented functions)
✅ 6 implemented
sceErrorDialogClosesceErrorDialogGetStatussceErrorDialogInitializesceErrorDialogOpensceErrorDialogTerminatesceErrorDialogUpdateStatusImported from boykopovar/AnyPS5. Originally posted by Phi1ow on 2026-10-04T22:34:22Z.
Done. Added libSceErrorDialog to the "Silent stubs" list, and
sceErrorDialogOpennow logs the error code and user id from the parameter (offsets 4 and 8) viaAPS5_HIT, like libSceMsgDialog logs its message, so the error stays visible when a title hits one.Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-04T23:43:52Z.
Thanks, both done: libSceErrorDialog is in the silent stubs list, and
sceErrorDialogOpenlogs the error code and user id withAPS5_HITlike libSceMsgDialog, after the size check.guest_error_dialogpasses here and CI is green. Ready to merge from my side.#559 and #560 add their lines right next to this one in the silent stubs list, so the later ones need a one-line rebase.