mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-05-17 17:05:02 +00:00
Fix build when -DENABLE_DISCORD_RPC=OFF (#1551)
* added ifdef for discordrpc * replaced discordrpc include correctly
This commit is contained in:
parent
17c47bcd96
commit
9f42a12baf
4 changed files with 8 additions and 3 deletions
|
@ -173,6 +173,7 @@ SettingsDialog::SettingsDialog(std::span<const QString> physical_devices, QWidge
|
|||
BackgroundMusicPlayer::getInstance().setVolume(val);
|
||||
});
|
||||
|
||||
#ifdef ENABLE_DISCORD_RPC
|
||||
connect(ui->discordRPCCheckbox, &QCheckBox::stateChanged, this, [](int val) {
|
||||
Config::setEnableDiscordRPC(val);
|
||||
auto* rpc = Common::Singleton<DiscordRPCHandler::RPC>::Instance();
|
||||
|
@ -183,6 +184,7 @@ SettingsDialog::SettingsDialog(std::span<const QString> physical_devices, QWidge
|
|||
rpc->shutdown();
|
||||
}
|
||||
});
|
||||
#endif
|
||||
}
|
||||
|
||||
// Input TAB
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue