Skip to content

MatchingContext#4139

Open
mikusp wants to merge 1 commit intoshadps4-emu:mainfrom
mikusp:matching_context
Open

MatchingContext#4139
mikusp wants to merge 1 commit intoshadps4-emu:mainfrom
mikusp:matching_context

Conversation

@mikusp
Copy link
Copy Markdown
Contributor

@mikusp mikusp commented Mar 17, 2026

A lot of changes to NpMatching2:

  • creates a dedicated MatchingContext class that handles the communication with multiplayer server over websockets
  • all of the requests and responses are marshalled using json
  • as some response structs contain arrays encoded as a pointer and the size, these are unmarshalled to ...Owned variant, and the proper struct is obtained using view() method
  • only some Matching2 methods are implemented, i.e. Search, CreateJoin, Join, as well as MEMBER_JOINED event

The PR is already massive so I figured it is as good point as any to upstream even if it doesn't work end-to-end yet. The server part is also in development but not published at the moment

@mikusp mikusp force-pushed the matching_context branch 7 times, most recently from 6933acf to 9b1b93a Compare March 18, 2026 21:37
@mikusp mikusp marked this pull request as ready for review March 18, 2026 23:04
@@ -0,0 +1,337 @@
// SPDX-FileCopyrightText: Copyright 2024-2026 shadPS4 Emulator Project
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

New files are made in 2026, not 2024.

@mikusp mikusp force-pushed the matching_context branch 2 times, most recently from c5456a8 to 1303e2a Compare March 27, 2026 19:30
@mikusp mikusp force-pushed the matching_context branch from 1303e2a to 8a3d2e9 Compare March 27, 2026 22:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants