mirror of
https://github.com/XLabsProject/s1x-client.git
synced 2023-08-02 15:02:12 +02:00
assign temp values for partySize + state
This commit is contained in:
parent
a2ab4a01d7
commit
e2e1a9b2de
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user