libNet: finish NpCommerce dialogs at open #1166
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
GPU
GUI
help wanted
question
Shaders
Video
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/KytyPS5--KytyPS5!1166
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1166/head"
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?
@NeySlim on GitHub · 2026-10-07 22:00 UTC · original
NeySlim:fix/np-commerce-dialog-open→main· +163 −3 · 2 files · 2 commits · merged 2026-10-08 15:31 UTCProblem
God of War Ragnarök (PPSA08332, 05.005) opens a store dialog from its main menu:
sceNpCommerceDialogOpen(DfSCDRA3EjY) is not exported, so the call hits the unresolved-import stub:The game then polls
sceNpCommerceDialogUpdateStatusuntil the dialog reports FINISHED. That status stays INITIALIZED, so one guest thread spins at 100 % forever and the game stops responding (gdb: the thread sits inNpCommerceDialogUpdateStatus).Change
Export
sceNpCommerceDialogOpen. There is no store to show, so the dialog finishes immediately (status 3, FINISHED), as if the user closed it. Opening beforesceNpCommerceDialogInitializereturns the existing NOT_INITIALIZED error.Terminateresets the status as before.Test
New
TestNpCommerceDialoginKernelFileSystemTests, next to the NpWebApi2 check: open without initialization fails, then initialize, open,UpdateStatus() == 3, terminate,UpdateStatus() == 0. It fails without the change (the export does not resolve).Validation
Linux, AMD Radeon 8060S, Mesa RADV 26.2.3.
kernel_file_system_testspasses.Not tested on Windows. The change only adds an HLE export, with no platform-specific code.
#316 (Demon's Souls) also hit missing NpCommerce dialog exports.
AI use
I used Claude Code (AI agent) to investigate the hang, write the change and the test, and run the tests above on my machine. I reviewed the diff and the results before opening this PR.
@coderabbitai[bot] on GitHub · 2026-10-07 22:02 UTC · original
No actionable comments were generated in the recent review. 🎉
ℹ️ Recent review info
⚙️ Run configuration
1e4aeb63-7845-4e8f-97f9-c870c5fdac69📥 Commits
Reviewing files that changed from the base of the PR and between
c86c8b4d93and3eda8a6442.📒 Files selected for processing (2)
src/libs/libNet.cpptests/KernelFileSystemTests.cppIncluded review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 6 remain after this review.
📝 Walkthrough
Walkthrough
The change adds and registers
NpCommerceDialogOpen. It returnsCOMMERCE_ERROR_NOT_INITIALIZEDif commerce is uninitialized. Otherwise, it sets the dialog status to finished and returnsOK. A test checks the open result before and after initialization, update states, and termination.Suggested reviewers:
nmzikPriority: ➖ Normal
Change: Bug fix
Merge Risk: ⚪ Minimal · up to
3eda8This change adds the missing commerce dialog open export so titles polling its status no longer hang. The supplied context shows no concrete merge-blocking risk.
🚥 Pre-merge checks | ✅ 4 | ❌ 1
❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
❤️ Share
Comment
@coderabbitai helpto get the list of available commands.