Skip to content

Commit

Permalink
discord RPC
Browse files Browse the repository at this point in the history
  • Loading branch information
sjrc6 committed Jan 5, 2025
1 parent 10745ba commit fe9eb8f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ option(SERVER "Compile server" ON)
option(TOOLS "Compile tools" OFF)
option(DOWNLOAD_GTEST "Download and compile GTest" ${AUTO_DEPENDENCIES_DEFAULT})
option(STEAM "Build the Steam release version" ON)
option(DISCORD "Enable Discord rich presence support" OFF)
option(DISCORD "Enable Discord rich presence support" ON)
option(DISCORD_DYNAMIC "Enable discovering Discord rich presence libraries at runtime (Linux only)" OFF)
option(PREFER_BUNDLED_LIBS "Prefer bundled libraries over system libraries" ${AUTO_DEPENDENCIES_DEFAULT})
option(DEV "Don't generate stuff necessary for packaging" OFF)
Expand Down
10 changes: 5 additions & 5 deletions src/engine/client/discord.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class CDiscord : public IDiscord
DiscordCreateParams Params;
DiscordCreateParamsSetDefault(&Params);

Params.client_id = 752165779117441075; // DDNet
Params.client_id = 1325361453988970527; // TClient
Params.flags = EDiscordCreateFlags::DiscordCreateFlags_NoRequireDiscord;
Params.event_data = this;
Params.activity_events = &m_ActivityEvents;
Expand All @@ -63,8 +63,8 @@ class CDiscord : public IDiscord
{
DiscordActivity Activity;
mem_zero(&Activity, sizeof(DiscordActivity));
str_copy(Activity.assets.large_image, "ddnet_logo", sizeof(Activity.assets.large_image));
str_copy(Activity.assets.large_text, "DDNet logo", sizeof(Activity.assets.large_text));
str_copy(Activity.assets.large_image, "tclient", sizeof(Activity.assets.large_image));
str_copy(Activity.assets.large_text, "TClient", sizeof(Activity.assets.large_text));
Activity.timestamps.start = time_timestamp();
str_copy(Activity.details, "Offline", sizeof(Activity.details));
m_pActivityManager->update_activity(m_pActivityManager, &Activity, 0, 0);
Expand All @@ -73,8 +73,8 @@ class CDiscord : public IDiscord
{
DiscordActivity Activity;
mem_zero(&Activity, sizeof(DiscordActivity));
str_copy(Activity.assets.large_image, "ddnet_logo", sizeof(Activity.assets.large_image));
str_copy(Activity.assets.large_text, "DDNet logo", sizeof(Activity.assets.large_text));
str_copy(Activity.assets.large_image, "tclient", sizeof(Activity.assets.large_image));
str_copy(Activity.assets.large_text, "TClient", sizeof(Activity.assets.large_text));
Activity.timestamps.start = time_timestamp();
str_copy(Activity.details, "Online", sizeof(Activity.details));
str_copy(Activity.state, pMapName, sizeof(Activity.state));
Expand Down

0 comments on commit fe9eb8f

Please sign in to comment.