From fe9eb8fdd11be4086bc0542a09b88d42c2c96725 Mon Sep 17 00:00:00 2001 From: Tater Date: Sun, 5 Jan 2025 01:25:29 -0600 Subject: [PATCH] discord RPC --- CMakeLists.txt | 2 +- src/engine/client/discord.cpp | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index a898645e474..c995c22dc1d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) diff --git a/src/engine/client/discord.cpp b/src/engine/client/discord.cpp index cef226d85ac..bca7099d106 100644 --- a/src/engine/client/discord.cpp +++ b/src/engine/client/discord.cpp @@ -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; @@ -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); @@ -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));