Common dialogs: 21 libraries redefine the status and error codes, and 14 return 0x80B80007 for BUSY #15643
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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 LeandroLP23 on 2026-11-03T22:50:04Z.
Twenty-one dialog libraries define the common dialog status and error codes for themselves, and they disagree on
BUSY.The codes
COMMON_DIALOG_STATUS_*,COMMON_DIALOG_ERROR_*andCOMMON_DIALOG_RESULT_USER_CANCELEDare redefined in an anonymous namespace in each of 21 libraries (main1c8c0efc8c):libSceCdlgG2P, libSceCdlgPlayerReview, libSceGameCustomDataDialog, libSceHmdSetupDialog, libSceInvitationDialog, libSceLoginDialog, libSceMsgDialog.native, libSceNetCtlApDialog, libSceNpAuthAuthorizedAppDialog, libSceNpCommerce, libSceNpFriendListDialog, libSceNpProfileDialog, libSceNpSnsFacebookDialog, libScePlayerSelectionDialog, libScePs2EmuMenuDialog, libSceSigninDialog, libSceSocialScreenDialog, libSceUsbStorageDialog, libSceVrServiceDialog, libSceVrSetupDialog, libSceWebBrowserDialog.
libSceCommonDialog/CommonDialog.hpp, which most of them already include, defines onlyCOMMON_DIALOG_OK,ALREADY_SYSTEM_INITIALIZEDandALREADY_INITIALIZED.The values mostly agree. The exception is
BUSY:BUSY0x80B80007kErrBusyin libSceMsgDialog0x80B80008shadPS4's
commondialog.hgivesRESULT_NONE = 0x80B80007andBUSY = 0x80B80008. So the 14 libraries most likely returnRESULT_NONEwhere they mean busy.docs/dev/debt/libSceMsgDialog.mdalready lists0x80b80007(busy) as not measured. Neither value has been measured on a console here.libScePlayGoDialog returns
0x80B80007too, asERROR_INVALID_STATE, fromscePlayGoDialogOpenwhile the dialog is running. That is the same busy case under another name, so it goes with theBUSYdecision (corrected after kaiffeetasse's comment below, which also has the full inventory: 25 files in 24 library directories).Behaviour
Six libraries have the same
GetResult(libSceGameCustomDataDialog, libSceHmdSetupDialog, libSceNpFriendListDialog, libSceNpSnsFacebookDialog, libSceSocialScreenDialog, libSceVrServiceDialog), and four the sameOpen(libSceGameCustomDataDialog, libSceSigninDialog, libSceSocialScreenDialog, libSceVrServiceDialog). Most of the rest are close variants of one status machine on astd::atomic<int> g_status.Proposal
CommonDialog.hpp, withBUSY = 0x80B80008andRESULT_NONE = 0x80B80007as shadPS4 lists them, and drop the per-library copies. This changes what the 14 libraries return for busy, and their tests that expect0x80B80007change with it.Initialize/Open/GetStatus/GetResult/Close/Terminatepaths. Each library keeps its exports and calls the helper.szambonurek-88 has 14 open pull requests (#15378-#15394) that each change
GetResultin one of these libraries, to returnARG_NULLfor an unwritable result. Step 2 would conflict with all of them, so I'd do step 1 first and step 2 after those land, putting their check in the sharedGetResult. Step 1 touches only the constant blocks.Questions:
BUSYto0x80B80008, or should it wait for a console measurement?AI-assisted: yes (Claude Code)