mirror of
https://github.com/azahar-emu/azahar.git
synced 2026-06-24 12:09:22 -04:00
25 lines
535 B
C++
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
|