shadPS4/src/discord.h

19 lines
338 B
C
Raw Normal View History

2023-08-11 19:22:26 +02:00
#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