예제 #1
0
void discord_shutdown(void)
{
   RARCH_LOG("[Discord] shutting down ..\n");
   Discord_ClearPresence();
   Discord_Shutdown();
   discord_ready = false;
}
예제 #2
0
	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();
		}
	}
예제 #3
0
	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();
	}
예제 #4
0
void UDiscordRpc::ClearPresence()
{
    Discord_ClearPresence();
}