mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-07 14:45:41 +12:00
25 lines
No EOL
426 B
C++
25 lines
No EOL
426 B
C++
#pragma once
|
|
|
|
#ifdef PANDA3DS_ENABLE_DISCORD_RPC
|
|
#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();
|
|
|
|
bool running() const { return enabled; }
|
|
};
|
|
} // namespace Discord
|
|
|
|
#endif |