Commit Graph
7 Commits
Author SHA1 Message Date
MarcZX10 8b03ecc254 test(libSceErrorDialog): cover closing, terminating and the automatic finish
guest_error_dialog closes a shown dialog (the session closes and a second close
fails), terminates a waiting dialog (the session is reset and releases the
input), and checks that a dialog the session refuses because another one is
showing, and one opened with no presenter, finish on the first update call.
2026-10-29 14:06:17 +00:00
MarcZX10 e026a454ef test(libSceErrorDialog): cover a shown error dialog
guest_error_dialog opens a dialog with a presenter: the view carries the error
code with one focused OK button, status calls keep it running, a confirm or a
cancel input finishes it, and both update and get status report the result.
2026-10-29 14:06:17 +00:00
Hedi Trigui d201b372b2 test(libSceErrorDialog): cover uninitialized and invalid size arguments in sceErrorDialogOpen 2026-10-26 17:01:01 +01:00
boykopovar f38d29fd08 refactor(sdk): add canonical headers for remaining libraries 2026-10-24 23:17:42 +03:00
al3w0f205 5b6ae43b26 test(libSceErrorDialog): cover sceErrorDialogOpenDetail and sceErrorDialogOpenWithReport 2026-10-21 12:25:38 -05:00
Nithishvelan M 04b673e53d test(libSceErrorDialog): cover initial status queries and uninitialized close in guest test 2026-10-14 19:58:56 +05:30
Phi1ow 7854fb6bff feat(errordialog): implement the libSceErrorDialog state machine
The six libSceErrorDialog exports were throwing stubs. They now implement the dialog's
NONE -> INITIALIZED -> RUNNING -> FINISHED state machine without a visible window, so a title
that opens an error dialog and waits for it never blocks:

- sceErrorDialogInitialize -> INITIALIZED, or 0x80ED0002 if already initialized
- sceErrorDialogOpen -> checks the state and the 16-byte parameter, then RUNNING
- sceErrorDialogUpdateStatus -> turns RUNNING into FINISHED and returns the status
- sceErrorDialogGetStatus -> returns the status
- sceErrorDialogClose -> FINISHED, or 0x80ED0005 when no dialog is running
- sceErrorDialogTerminate -> NONE, or 0x80ED0001 when 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. Adds a CMakeLists.txt so the library can carry its
guest test.

New test core/libs/tests/GuestErrorDialog.cpp drives the whole state machine (the
not-initialized and already-initialized errors, the state and parameter checks of open,
open/update/close and re-open after finish). It fails on main (the stubs throw) and passes
with the change.
2026-10-04 22:33:43 +02:00