mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-01-17 04:06:25 +00:00
19 lines
338 B
C++
19 lines
338 B
C++
#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
|