shadPS4/src/common/discord.h

20 lines
339 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();
};
2023-11-05 12:22:18 +01:00
} // namespace Discord