Another fix for github actions

This commit is contained in:
Anonymous275
2022-01-18 14:59:12 +02:00
parent 4c1fea8ca9
commit c9c4159367
4 changed files with 6 additions and 7 deletions

View File

@@ -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")
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")

View File

@@ -3,7 +3,7 @@
/// Copyright (c) 2021-present Anonymous275 read the LICENSE file for more info.
///
#include <discord-rpc/include/discord_rpc.h>
#include <discord_rpc.h>
#include "Launcher.h"
#include "Logger.h"

View File

@@ -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() {

View File

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