mirror of
https://github.com/BeamMP/BeamMP-Launcher.git
synced 2026-04-11 18:26:10 +00:00
added discord-rpc
This commit is contained in:
@@ -5,27 +5,36 @@
|
||||
|
||||
#pragma once
|
||||
#include <string>
|
||||
#include <thread>
|
||||
|
||||
class Launcher {
|
||||
public: //constructors
|
||||
Launcher(int argc, char* argv[]);
|
||||
~Launcher();
|
||||
public: //available functions
|
||||
std::string Login(const std::string& fields);
|
||||
void checkLocalKey();
|
||||
void runDiscordRPC();
|
||||
void loadConfig();
|
||||
void launchGame();
|
||||
void checkKey();
|
||||
public: //Getters
|
||||
const std::string& getFullVersion();
|
||||
const std::string& getWorkingDir();
|
||||
const std::string& getUserRole();
|
||||
const std::string& getVersion();
|
||||
private: //functions
|
||||
void richPresence();
|
||||
void WindowsInit();
|
||||
private: //variables
|
||||
std::string DirPath;
|
||||
std::string UserRole;
|
||||
std::string PublicKey;
|
||||
bool EnableUI = true;
|
||||
bool Shutdown = false;
|
||||
std::string DirPath{};
|
||||
bool LoginAuth = false;
|
||||
std::string UserRole{};
|
||||
std::string PublicKey{};
|
||||
std::thread DiscordRPC{};
|
||||
std::string DiscordMessage{};
|
||||
std::string Version{"3.0"};
|
||||
std::string TargetBuild{"default"};
|
||||
std::string FullVersion{Version + ".0"};
|
||||
};
|
||||
|
||||
1
include/discord-rpc
Submodule
1
include/discord-rpc
Submodule
Submodule include/discord-rpc added at e4c0c569ec
Reference in New Issue
Block a user