mirror of
https://github.com/BeamMP/BeamMP-Launcher.git
synced 2026-04-04 14:56:24 +00:00
discord rpc test
This commit is contained in:
@@ -9,13 +9,14 @@
|
||||
#include <windows.h>
|
||||
#include <shellapi.h>
|
||||
|
||||
Launcher::Launcher(int argc, char* argv[]) : DirPath(argv[0]) {
|
||||
Launcher::Launcher(int argc, char* argv[]) : DirPath(argv[0]), DiscordMessage("Just launched") {
|
||||
DirPath = DirPath.substr(0, DirPath.find_last_of("\\/") + 1);
|
||||
Log::Init();
|
||||
WindowsInit();
|
||||
}
|
||||
|
||||
Launcher::~Launcher() {
|
||||
Shutdown = true;
|
||||
if(DiscordRPC.joinable()) {
|
||||
DiscordRPC.join();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user