diff --git a/CMakeLists.txt b/CMakeLists.txt index 6acb4de..ea2df54 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -53,4 +53,6 @@ else(WIN32) #MINGW target_link_libraries(${PROJECT_NAME} discord-rpc ssl crypto ws2_32 ssp crypt32 z) endif(WIN32) add_definitions(-DELPP_NO_DEFAULT_LOG_FILE) -target_include_directories(${PROJECT_NAME} PRIVATE "include") \ No newline at end of file +target_include_directories(${PROJECT_NAME} PRIVATE "include") +target_include_directories(${PROJECT_NAME} PRIVATE "include/rapidjson/include") +target_include_directories(${PROJECT_NAME} PRIVATE "include/discord-rpc/include") \ No newline at end of file diff --git a/src/Discord.cpp b/src/Discord.cpp index 44c6d79..2c30365 100644 --- a/src/Discord.cpp +++ b/src/Discord.cpp @@ -3,7 +3,7 @@ /// Copyright (c) 2021-present Anonymous275 read the LICENSE file for more info. /// -#include +#include #include "Launcher.h" #include "Logger.h" diff --git a/src/Launcher.cpp b/src/Launcher.cpp index 4dbb9b7..c6b5d1f 100644 --- a/src/Launcher.cpp +++ b/src/Launcher.cpp @@ -24,8 +24,7 @@ Launcher::~Launcher() { void Launcher::launchGame() { ShellExecuteA(nullptr, nullptr, "steam://rungameid/284160", nullptr, nullptr, SW_SHOWNORMAL); - ShowWindow(GetConsoleWindow(), HIDE_WINDOW); - LOG(INFO) << "Sus"; + //ShowWindow(GetConsoleWindow(), HIDE_WINDOW); } void Launcher::WindowsInit() { diff --git a/src/main.cpp b/src/main.cpp index 595be1b..0e4f9e9 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -4,14 +4,12 @@ /// #include "Launcher.h" -#include "Logger.h" + int main(int argc, char* argv[]) { Launcher launcher(argc, argv); launcher.runDiscordRPC(); launcher.loadConfig(); launcher.checkKey(); //UI call - std::this_thread::sleep_for(std::chrono::seconds(50)); - LOG(INFO) << "Shutting down"; return 0; }