瀏覽代碼

fix discord rpc

Adya 2 年之前
父節點
當前提交
ad43131df5
共有 2 個文件被更改,包括 4 次插入2 次删除
  1. 1 1
      CMakeLists.txt
  2. 3 1
      src/suyu/discord_impl.cpp

+ 1 - 1
CMakeLists.txt

@@ -44,7 +44,7 @@ option(SUYU_USE_QT_WEB_ENGINE "Use QtWebEngine for web applet implementation" OF
 
 option(ENABLE_CUBEB "Enables the cubeb audio backend" ON)
 
-option(USE_DISCORD_PRESENCE "Enables Discord Rich Presence" OFF)
+option(USE_DISCORD_PRESENCE "Enables Discord Rich Presence" ON)
 
 option(SUYU_TESTS "Compile tests" "${BUILD_TESTING}")
 

+ 3 - 1
src/suyu/discord_impl.cpp

@@ -1,6 +1,8 @@
 // SPDX-FileCopyrightText: 2018 Citra Emulator Project & 2024 suyu Emulator Project
 // SPDX-License-Identifier: GPL-2.0-or-later
 
+// Modified by AdyaGMD on <2024/03/09>
+
 #include <chrono>
 #include <string>
 
@@ -24,7 +26,7 @@ DiscordImpl::DiscordImpl(Core::System& system_) : system{system_} {
     DiscordEventHandlers handlers{};
     // The number is the client ID for suyu, it's used for images and the
     // application name
-    Discord_Initialize("712465656758665259", &handlers, 1, nullptr);
+    Discord_Initialize("1216044747781570671", &handlers, 1, nullptr);
 }
 
 DiscordImpl::~DiscordImpl() {