mirror of
https://github.com/BeamMP/BeamMP-Launcher.git
synced 2025-08-17 16:57:11 +00:00
github actions fix
This commit is contained in:
parent
656e0e540f
commit
4c1fea8ca9
@ -3,17 +3,18 @@
|
|||||||
/// Copyright (c) 2021-present Anonymous275 read the LICENSE file for more info.
|
/// Copyright (c) 2021-present Anonymous275 read the LICENSE file for more info.
|
||||||
///
|
///
|
||||||
|
|
||||||
#include <discord_rpc.h>
|
#include <discord-rpc/include/discord_rpc.h>
|
||||||
#include "Launcher.h"
|
#include "Launcher.h"
|
||||||
#include "Logger.h"
|
#include "Logger.h"
|
||||||
|
|
||||||
void Launcher::richPresence() {
|
void Launcher::richPresence() {
|
||||||
Discord_Initialize("629743237988352010", nullptr, 1,nullptr);
|
Discord_Initialize("629743237988352010", nullptr, 1,nullptr);
|
||||||
|
int64_t Start{};
|
||||||
while(!Shutdown) {
|
while(!Shutdown) {
|
||||||
DiscordRichPresence discordPresence;
|
DiscordRichPresence discordPresence;
|
||||||
memset(&discordPresence, 0, sizeof(discordPresence));
|
memset(&discordPresence, 0, sizeof(discordPresence));
|
||||||
discordPresence.state = DiscordMessage.c_str();
|
discordPresence.state = DiscordMessage.c_str();
|
||||||
discordPresence.startTimestamp = 0;
|
discordPresence.startTimestamp = Start;
|
||||||
discordPresence.largeImageKey = "mainlogo";
|
discordPresence.largeImageKey = "mainlogo";
|
||||||
Discord_UpdatePresence(&discordPresence);
|
Discord_UpdatePresence(&discordPresence);
|
||||||
Discord_RunCallbacks();
|
Discord_RunCallbacks();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user