mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-06-24 11:26:18 +00:00
Add discord RPC
This commit is contained in:
parent
16e2768df0
commit
f2b64e892b
5 changed files with 68 additions and 1 deletions
19
src/discord.h
Normal file
19
src/discord.h
Normal file
|
@ -0,0 +1,19 @@
|
|||
#pragma once
|
||||
|
||||
#include <discord_rpc.h>
|
||||
#include <cstdint>
|
||||
#include <string>
|
||||
|
||||
namespace Discord {
|
||||
enum class RPCStatus { Idling, Playing };
|
||||
|
||||
class RPC {
|
||||
std::uint64_t startTimestamp;
|
||||
bool enabled = false;
|
||||
|
||||
public:
|
||||
void init();
|
||||
void update(RPCStatus status, const std::string& title);
|
||||
void stop();
|
||||
};
|
||||
} // namespace Discord
|
Loading…
Add table
Add a link
Reference in a new issue