mirror of
https://github.com/BeamMP/BeamMP-Launcher.git
synced 2026-06-19 23:20:57 +00:00
Another fix for github actions
This commit is contained in:
+3
-1
@@ -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
@@ -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
@@ -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
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user