diff options
Diffstat (limited to 'src/citron/discord.h')
-rw-r--r-- | src/citron/discord.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/citron/discord.h b/src/citron/discord.h new file mode 100644 index 000000000..e08784498 --- /dev/null +++ b/src/citron/discord.h @@ -0,0 +1,24 @@ +// SPDX-FileCopyrightText: 2018 Citra Emulator Project +// SPDX-License-Identifier: GPL-2.0-or-later + +#pragma once + +namespace DiscordRPC { + +class DiscordInterface { +public: + virtual ~DiscordInterface() = default; + + virtual void Pause() = 0; + virtual void Update() = 0; +}; + +class NullImpl : public DiscordInterface { +public: + ~NullImpl() = default; + + void Pause() override {} + void Update() override {} +}; + +} // namespace DiscordRPC |