From 7f21104b5443947bac5739a070c3976e65d72485 Mon Sep 17 00:00:00 2001 From: jn64 <23169302+jn64@users.noreply.github.com> Date: Sat, 12 Nov 2022 03:51:50 +0800 Subject: [PATCH] Disable Discord RPC checkbox based on build option (#476) --- src/gui/GeneralSettings2.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gui/GeneralSettings2.cpp b/src/gui/GeneralSettings2.cpp index 013311a2..d463c8ca 100644 --- a/src/gui/GeneralSettings2.cpp +++ b/src/gui/GeneralSettings2.cpp @@ -153,6 +153,9 @@ wxPanel* GeneralSettings2::AddGeneralPage(wxNotebook* notebook) m_discord_presence = new wxCheckBox(box, wxID_ANY, _("Discord Presence")); m_discord_presence->SetToolTip(_("Enables the Discord Rich Presence feature\nYou will also need to enable it in the Discord settings itself!")); second_row->Add(m_discord_presence, 0, botflag, 5); +#ifndef ENABLE_DISCORD_RPC + m_discord_presence->Disable(); +#endif second_row->AddSpacer(10); m_fullscreen_menubar = new wxCheckBox(box, wxID_ANY, _("Fullscreen menu bar")); m_fullscreen_menubar->SetToolTip(_("Displays the menu bar when Cemu is running in fullscreen mode and the mouse cursor is moved to the top"));