assign temp values for partySize + state

This commit is contained in:
m 2021-03-13 10:03:59 -06:00 committed by GitHub
parent a2ab4a01d7
commit e2e1a9b2de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -44,12 +44,13 @@ namespace discord
//utils::string::strip(host_name, host_name, static_cast<int>(strlen(host_name)) + 1);
//discord_presence.state = host_name;
discord_presence.state = "Placeholder";
discord_presence.state = game::Dvar_FindVar("sv_hostname")->current.string;
// cgArray does not exist
/*discord_presence.partySize = game::mp::cgArray->snap != nullptr
? game::mp::cgArray->snap->numClients
: 1; */
discord_presence.partySize = 1;
discord_presence.partyMax = game::Dvar_FindVar("sv_maxclients")->current.integer;
if (!discord_presence.startTimestamp)
@ -123,4 +124,4 @@ namespace discord
#ifndef DEV_BUILD
REGISTER_COMPONENT(discord::component)
#endif
#endif