SuperTuxKart
|
Public Member Functions | |
void | update (bool force) |
Static Public Member Functions | |
static RichPresence * | get () |
static void | destroy () |
Private Member Functions | |
bool | tryConnect (std::string path) |
bool | doConnect () |
void | terminate () |
void | sendData (int32_t op, std::string json) |
void | handshake () |
void | readData () |
void | ensureCache () |
Static Private Member Functions | |
static void | finishConnection (RichPresence *self) |
Private Attributes | |
bool | m_connected |
std::atomic_bool | m_ready |
time_t | m_last |
int | m_socket |
std::shared_ptr< AssetRequest > | m_assets_request |
std::thread * | m_thread |
std::map< std::string, bool > | m_asset_cache |
std::string | m_assets |