diff options
author | Zephyron <zephyron@citron-emu.org> | 2024-12-31 16:19:25 +1000 |
---|---|---|
committer | Zephyron <zephyron@citron-emu.org> | 2024-12-31 16:19:25 +1000 |
commit | 9427e27e24a7135880ee2881c3c44988e174b41a (patch) | |
tree | 83f0062a35be144f6b162eaa823c5b3c7620146e /src/citron/discord_impl.h | |
parent | b35ae725d20960411e8588b11c12a2d55f86c9d0 (diff) |
chore: update project branding to citron
Diffstat (limited to 'src/citron/discord_impl.h')
-rw-r--r-- | src/citron/discord_impl.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/citron/discord_impl.h b/src/citron/discord_impl.h new file mode 100644 index 000000000..eb6cf9ae0 --- /dev/null +++ b/src/citron/discord_impl.h @@ -0,0 +1,32 @@ +// SPDX-FileCopyrightText: 2018 Citra Emulator Project +// SPDX-License-Identifier: GPL-2.0-or-later + +#pragma once + +#include "yuzu/discord.h" + +namespace Core { +class System; +} + +namespace DiscordRPC { + +class DiscordImpl : public DiscordInterface { +public: + DiscordImpl(Core::System& system_); + ~DiscordImpl() override; + + void Pause() override; + void Update() override; + +private: + std::string GetGameString(const std::string& title); + void UpdateGameStatus(bool use_default); + + std::string game_url{}; + std::string game_title{}; + + Core::System& system; +}; + +} // namespace DiscordRPC |