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
|