Merge pull request #765 from diamante0018/develop

[Discord]: Add party privacy value
This commit is contained in:
Edo 2023-02-09 15:52:49 +00:00 committed by GitHub
commit 0ea7291464
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -76,6 +76,7 @@ namespace Components
if (std::strcmp(hostName, "localhost") == 0) if (std::strcmp(hostName, "localhost") == 0)
{ {
DiscordPresence.state = "Private Match"; DiscordPresence.state = "Private Match";
DiscordPresence.partyPrivacy = DISCORD_PARTY_PRIVATE;
} }
else else
{ {
@ -84,6 +85,7 @@ namespace Components
TextRenderer::StripAllTextIcons(hostNameBuffer, hostNameBuffer, sizeof(hostNameBuffer)); TextRenderer::StripAllTextIcons(hostNameBuffer, hostNameBuffer, sizeof(hostNameBuffer));
DiscordPresence.state = hostNameBuffer; DiscordPresence.state = hostNameBuffer;
DiscordPresence.partyPrivacy = DISCORD_PARTY_PUBLIC;
} }
std::hash<Network::Address> hashFn; std::hash<Network::Address> hashFn;