discord rpc test

This commit is contained in:
Anonymous275
2022-01-18 14:27:20 +02:00
parent af29edb301
commit 656e0e540f
3 changed files with 6 additions and 3 deletions

View File

@@ -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();
}