mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-10-18 02:37:58 +00:00
Port web_service from Citra
This commit is contained in:
parent
5a8a2160ce
commit
92e939952c
45 changed files with 1577 additions and 39 deletions
25
src/yuzu/discord.h
Normal file
25
src/yuzu/discord.h
Normal file
|
@ -0,0 +1,25 @@
|
|||
// Copyright 2018 Citra 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() = 0;
|
||||
};
|
||||
|
||||
class NullImpl : public DiscordInterface {
|
||||
public:
|
||||
~NullImpl() = default;
|
||||
|
||||
void Pause() override {}
|
||||
void Update() override {}
|
||||
};
|
||||
|
||||
} // namespace DiscordRPC
|
Loading…
Add table
Add a link
Reference in a new issue