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
+3 -1
View File
@@ -53,4 +53,6 @@ else(WIN32) #MINGW
target_link_libraries(${PROJECT_NAME} discord-rpc ssl crypto ws2_32 ssp crypt32 z) target_link_libraries(${PROJECT_NAME} discord-rpc ssl crypto ws2_32 ssp crypt32 z)
endif(WIN32) endif(WIN32)
add_definitions(-DELPP_NO_DEFAULT_LOG_FILE) 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")
+1 -1
View File
@@ -3,7 +3,7 @@
/// Copyright (c) 2021-present Anonymous275 read the LICENSE file for more info. /// 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 "Launcher.h"
#include "Logger.h" #include "Logger.h"
+1 -2
View File
@@ -24,8 +24,7 @@ Launcher::~Launcher() {
void Launcher::launchGame() { void Launcher::launchGame() {
ShellExecuteA(nullptr, nullptr, "steam://rungameid/284160", nullptr, nullptr, SW_SHOWNORMAL); ShellExecuteA(nullptr, nullptr, "steam://rungameid/284160", nullptr, nullptr, SW_SHOWNORMAL);
ShowWindow(GetConsoleWindow(), HIDE_WINDOW); //ShowWindow(GetConsoleWindow(), HIDE_WINDOW);
LOG(INFO) << "Sus";
} }
void Launcher::WindowsInit() { void Launcher::WindowsInit() {
+1 -3
View File
@@ -4,14 +4,12 @@
/// ///
#include "Launcher.h" #include "Launcher.h"
#include "Logger.h"
int main(int argc, char* argv[]) { int main(int argc, char* argv[]) {
Launcher launcher(argc, argv); Launcher launcher(argc, argv);
launcher.runDiscordRPC(); launcher.runDiscordRPC();
launcher.loadConfig(); launcher.loadConfig();
launcher.checkKey(); launcher.checkKey();
//UI call //UI call
std::this_thread::sleep_for(std::chrono::seconds(50));
LOG(INFO) << "Shutting down";
return 0; return 0;
} }