azahar/src/citra_qt/discord.h
2026-04-13 14:22:58 +02:00

25 lines
535 B
C++

// Copyright Citra Emulator Project / Azahar Emulator Project
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.
#pragma once
namespace DiscordRPC {
class DiscordInterface {
public:
virtual ~DiscordInterface() = default;
virtual void Pause() = 0;
virtual void Update(bool is_powered_on) = 0;
};
class NullImpl : public DiscordInterface {
public:
~NullImpl() = default;
void Pause() override {}
void Update(bool is_powered_on) override {}
};
} // namespace DiscordRPC