Commit Graph
6 Commits
Author SHA1 Message Date
XairRrR 1e26b92ae1 fix(libSceNpSnsFacebookDialog): keep a terminated dialog terminated during Open and Close
sceNpSnsFacebookDialogOpen and sceNpSnsFacebookDialogClose read the
dialog status, checked it, and then stored FINISHED in a separate step.
If another thread called sceNpSnsFacebookDialogTerminate between the
read and the store, Terminate returned 0 and set the status to NONE,
and then Open or Close wrote FINISHED over it. The library was left
looking initialized after it had been terminated:
sceNpSnsFacebookDialogGetStatus returned FINISHED and the next
sceNpSnsFacebookDialogInitialize failed with ALREADY_INITIALIZED.

Open and Close now move the status to FINISHED with a compare-exchange
loop that repeats the checks against the value it replaces, so a
concurrent Terminate either happens first, making the call return
NOT_INITIALIZED, or happens after, leaving the status at NONE. Open
still offers the PSN feature notice only after a successful transition.

guest_np_sns_facebook_dialog gains two cases that race Open and Close
against Terminate for 200000 rounds each and require the status to be
NONE after every round.

AI-assisted: yes
2026-11-04 00:11:47 +01:00
MarcZX10 e1ed04d496 test(libSceNpCommerce): cover the PSN notice on Open and Open2
Check that silent mode shows nothing, that show mode shows the PSN notice
when Open and Open2 succeed with a valid store parameter, that a null
parameter shows nothing, and that no notice is shown without a presenter.
The guest test links libSceIme.
2026-10-30 18:49:35 +00:00
Hedi Trigui 340ab9f970 test(libSceNpSnsFacebookDialog): cover uninitialized and terminated argument validation 2026-10-27 08:34:14 +01:00
pushkarreddyy a1fe72743e test(libSceNpSnsFacebookDialog): cover null argument handling before initialization 2026-10-26 23:05:06 +05:30
boykopovar f38d29fd08 refactor(sdk): add canonical headers for remaining libraries 2026-10-24 23:17:42 +03:00
Felipe Arce 6f401fe667 feat: run the common-dialog state machine in the Facebook and game custom data dialogs 2026-10-23 01:18:59 -03:00