sceMsgDialogOpen read g_status once at entry and then stored RUNNING or
FINISHED unconditionally. A sceMsgDialogTerminate running on another
thread between those two points was overwritten, so the library looked
initialized, the next Initialize failed with ALREADY_INITIALIZED, and the
modal dialog could stay Showing with no live library behind it.
Open now stores its target status with a compare-exchange loop. If the
status became 0, Terminate won: Open clears g_presented, resets the
MsgDialog modal session it opened, and returns NOT_INITIALIZED.
AI-assisted: yes
The dialog request carries the message dialog owner id, and the status poll,
close, open and terminate pass it, so terminating libSceMsgDialog.native no
longer resets or finishes a dialog another library is showing.
sceMsgDialogOpen replaces the previous dialog of the module. A dialog that was
still waiting for an answer is now closed in the session first, so the new
dialog is shown instead of being refused and the old one does not stay on
screen holding the input.
sceMsgDialogOpen builds a modal dialog request from the user message and, when
the session accepts it, leaves the dialog running until the player answers it
or the title closes it. Every other dialog, and any dialog opened with no
presenter, still finishes at sceMsgDialogOpen with button 1.
sceMsgDialogClose of a presented dialog that is still waiting closes the
session, so the overlay and its input capture go away, and sceMsgDialogTerminate
resets it. No dialog is presented yet.
sceMsgDialogGetResult reports the button id remembered from the session's answer
instead of always answering OK. The id is still 1 for every dialog that was not
presented and for one the title closed.
The status calls and sceMsgDialogGetResult now ask the modal dialog session when
a dialog is marked as presented: it stays running until the session reports an
answer, a close or a reset, then finishes and remembers the answered button id.
Nothing marks a dialog as presented yet, so every dialog still finishes at
sceMsgDialogOpen.
PPSA12544's Unity plugins (CommonDialog, PSN) import
sceMsgDialogProgressBarInc, sceMsgDialogProgressBarSetMsg and
sceMsgDialogProgressBarSetValue from libSceMsgDialog.native, which did
not export them. As in libSceMsgDialog, they succeed while a dialog is
running and return COMMON_DIALOG_ERROR_NOT_RUNNING otherwise; the native
dialog finishes in sceMsgDialogOpen.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A title that loads libSceMsgDialog.native without libSceMsgDialog
imports sceMsgDialogClose from it, so without the export it stops at
startup on an unresolved import.
Close turns a running dialog into a finished one and returns
NOT_RUNNING in every other state, as libSceMsgDialog's Close does.
The module keeps its own dialog status, so it cannot reuse that
export. Open in this module finishes the dialog at once, so Close
after Open returns NOT_RUNNING and leaves the result unchanged.
The module is now listed under silent stubs in TechnicalDebt, and a
CMakeLists.txt registers the guest_msg_dialog_native test.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign-in, web browser and player dialogs finish cancelled; the message dialog finishes at once;
NpAuth, entitlement consumption, reachability, account age and the NpUtility bandwidth test
report signed out; sceKernelMtypeprotect changes the protection (the memory type has no host
equivalent); the APR ForEach resolvers resolve every path and report each failure in its own
result entry. vswprintf's stub is dropped in favor of the existing wide-formatter
implementation, which already covers it on every platform.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Only the lines this branch added lose their comments; the commits before
keep them, with the reasoning behind each change, for whoever digs into
that code later.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- NP: signed-out callbacks and reachability; owned add-on entitlements
from anyps5-entitlements.ini next to the executable (or the file
ANYPS5_ENTITLEMENTS names)
- web browser, message, player invitation and player selection dialogs
finish without a UI; Remote Play, IME keyboard, SharePlay, live
streaming and video recording lifecycles for a console without them
- app content temporary data mount, format and free space (download data
quota from param.json); content export, search and delete lifecycles
- pad output-only calls, system service notice-screen flags, RazorCpu
markers, ulobjmgr
- throwing stubs for the remaining imports, so missing behavior fails
loudly
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>