added discord-rpc

This commit is contained in:
Anonymous275
2022-01-18 13:58:49 +02:00
parent 93eb82080c
commit 6e45304aea
10 changed files with 78 additions and 28 deletions

View File

@@ -15,6 +15,12 @@ Launcher::Launcher(int argc, char* argv[]) : DirPath(argv[0]) {
WindowsInit();
}
Launcher::~Launcher() {
if(DiscordRPC.joinable()) {
DiscordRPC.join();
}
}
void Launcher::launchGame() {
ShellExecuteA(nullptr, nullptr, "steam://rungameid/284160", nullptr, nullptr, SW_SHOWNORMAL);
ShowWindow(GetConsoleWindow(), HIDE_WINDOW);
@@ -43,3 +49,4 @@ const std::string& Launcher::getUserRole() {
}