Skip to content

Add Discord Rich Presence support - #30

Open
zeex64 wants to merge 1 commit into
R5Reloaded:p4syncfrom
zeex64:feat_discord_ipc
Open

Add Discord Rich Presence support#30
zeex64 wants to merge 1 commit into
R5Reloaded:p4syncfrom
zeex64:feat_discord_ipc

Conversation

@zeex64

@zeex64 zeex64 commented Jul 31, 2026

Copy link
Copy Markdown

Implements a native Discord IPC client for Rich Presence without any external SDK dependency. Includes:

  • CDiscordIpc: low-level named pipe IPC client handling handshake, framing, and event subscriptions
  • CDiscordRpc: thin C API wrapper around CDiscordIpc
  • CDiscordPresence: high-level manager that tracks game state (menu, connecting, in-game server info) and pushes presence updates

Presence is initialized during host setup, updated each frame, and shut down on exit. A discord_presence_enable ConVar and -nodiscord launch flag allow users to opt out. Excluded from dedicated server builds.

Implements a native Discord IPC client for Rich Presence without any external SDK dependency. Includes:
- CDiscordIpc: low-level named pipe IPC client handling handshake, framing, and event subscriptions
- CDiscordRpc: thin C API wrapper around CDiscordIpc
- CDiscordPresence: high-level manager that tracks game state (menu, connecting, in-game server info) and pushes presence updates

Presence is initialized during host setup, updated each frame, and shut down on exit. A `discord_presence_enable` ConVar and `-nodiscord` launch flag allow users to opt out. Excluded from dedicated server builds.
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.

1 participant