void discord_shutdown(void) { RARCH_LOG("[Discord] shutting down ..\n"); Discord_ClearPresence(); Discord_Shutdown(); discord_ready = false; }
void DiscordRPC::UpdatePresence() { time_t curTime; time(&curTime); if (curTime - lastUpdate > discordUpdateTime) { if (Modules::ModuleGame::Instance().VarDiscordEnable->ValueInt == 0) { Discord_ClearPresence(); return; } lastUpdate = curTime; UpdateRichPresence(); } }
void DiscordRPC::UpdatePresence(int networkMode) { if (Modules::ModuleGame::Instance().VarDiscordEnable->ValueInt == 0) { Discord_ClearPresence(); return; } auto session = Blam::Network::GetActiveSession(); if (networkMode == 3 && session->IsHost()) { auto thread = CreateThread(NULL, 0, DiscordRetrieveExternalIP_Thread, NULL, 0, NULL); } else { joinString = ""; } UpdatePresence(); }
void UDiscordRpc::ClearPresence() { Discord_ClearPresence(); }