fix(libScePlayGoDialog): return error for uncompleted dialog in scePlayGoDialogGetResult #7396
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/7396"
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 ErenYeager1836 on 2026-10-18T04:35:33Z.
What
Ensures
scePlayGoDialogGetResultvalidates that the dialog is in finished state before returning results.Previously, calling
scePlayGoDialogGetResultwhile initialized or before open/completion returnedRESULT_OK(0) with zeroed result data. shadPS4'sscePlayGoDialogGetResultis a dummy stub that always returns OK and does not provide evidence for unfinished return values. Following all other common dialog modules across the tree (MsgDialog,SigninDialog,PlayerSelectionDialog,SaveDataDialog), queries before completion returnCOMMON_DIALOG_ERROR_NOT_FINISHED(0x80B80005).Tested
python tools/check_conventions.py --base upstream/mainpasses cleanly.guest_playgo_dialogunit test suite passes locally with CTest (100% tests passed out of 1).Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-18T04:48:41Z.
Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.
core/libs/tests/GuestPlayGoDialog.cppImported from boykopovar/AnyPS5. Originally posted by wachi35676 on 2026-10-18T12:05:47Z.
Tested on Windows 11, WinLibs GCC 15.2.0 (MinGW), Release, this PR applied onto
main3e3e8b905:guest_playgo_dialogpasses, and fails onmainwith only the test change.Where does
0x80ED0005come from?860a477) defines0x80ED0001–0x80ED0007asORBIS_ERROR_DIALOG_ERROR_*inime/ime_error.h, the ErrorDialog range.CommonDialog::Errorcodes (0x80B8xxxx).COMMON_DIALOG_ERROR_NOT_FINISHED(0x80B80005) from GetResult before the dialog finishes.Without a measurement or a title trace, please add a
docs/dev/debt/libScePlayGoDialog.mdentry that records the code and the state check as unverified. Small thing:uninitResultis used while the dialog is initialized.AI-assisted: yes (Claude Code); results above were run on this machine.
Imported from boykopovar/AnyPS5. Originally posted by ErenYeager1836 on 2026-10-18T12:18:22Z.
Thanks for the review, @wachi35676! Updated GuestPlayGoDialog.cpp to rename the test variable to unfinishedResult, and added docs/dev/debt/libScePlayGoDialog.md recording that 0x80ED0005 (ERROR_INVALID_STATE) and the intermediate completion state check are unverified against real hardware/title traces.
Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-19T14:26:57Z.
Review: CHANGES_REQUESTED
Thanks, the status check is a reasonable direction, but the error code has no source yet:
core/libs/prx/libScePlayGoDialog/Export.cpp:22/:70:0x80ED0005is not a CommonDialog code. shadPS4 defines0x80ED0001-0x80ED0007as the ErrorDialog range (ime/ime_error.h), while its PlayGoDialog usesCommonDialog::Error(0x80B8xxxx,NOT_FINISHED = 0x80B80005). Every other common dialog in the tree (MsgDialog, SigninDialog, PlayerSelectionDialog, SaveDataDialog) returns0x80B80005from GetResult before the dialog finishes. Please either return0x80B80005here too (and pin that value inGuestPlayGoDialog.cpp), or show a title trace/measurement that PlayGoDialog really returns0x80ED0005.scePlayGoDialogGetResultis a dummy that always returns OK, so it is not evidence for either value; say so in the description rather than "in real usage".core/libs/tests/GuestPlayGoDialog.cppalso conflicts with #6044 (same file); rebase after whichever lands first.Imported from boykopovar/AnyPS5. Originally posted by ErenYeager1836 on 2026-10-19T14:42:34Z.
Thanks for the review!
0x80ED0005to0x80B80005(COMMON_DIALOG_ERROR_NOT_FINISHED) inscePlayGoDialogGetResultto match the other common dialog implementations across the tree (MsgDialog,SigninDialog,PlayerSelectionDialog,SaveDataDialog).GuestPlayGoDialog.cppto explicitly pin0x80B80005u.scePlayGoDialogGetResultis a dummy stub that always returns OK, and that the return code follows the common dialog convention.upstream/main; ready to rebase after #6044 if #6044 lands first.Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-19T20:19:38Z.
Thanks,
0x80B80005matches the other common dialogs and the test pins it. Added one commit: the debt line moves from the new "Unverified behaviors" section to the existing "Unknown function info" one. Checked the test fails onmain(returns 0 at status 1) and the scope's ctest is green; merged.