mirror of
https://github.com/BeamMP/BeamMP-Launcher.git
synced 2025-07-01 23:46:59 +00:00
1.80.91
This commit is contained in:
parent
00313e32f9
commit
075d4a8c4d
@ -8,5 +8,18 @@ add_executable(${PROJECT_NAME} ${source_files})
|
|||||||
set_target_properties(${PROJECT_NAME} PROPERTIES OUTPUT_NAME "BeamMP-Launcher")
|
set_target_properties(${PROJECT_NAME} PROPERTIES OUTPUT_NAME "BeamMP-Launcher")
|
||||||
find_package(ZLIB REQUIRED)
|
find_package(ZLIB REQUIRED)
|
||||||
find_package(CURL CONFIG REQUIRED)
|
find_package(CURL CONFIG REQUIRED)
|
||||||
target_link_libraries(${PROJECT_NAME} PRIVATE ws2_32 rstrtmgr discord-rpc CURL::libcurl ZLIB::ZLIB)
|
|
||||||
|
# This might cause issues with old windows headers, but it's worth the trouble to keep the code
|
||||||
|
# completely cross platform. For fixes to common issues arising from /permissive- visit:
|
||||||
|
# https://docs.microsoft.com/en-us/cpp/build/reference/permissive-standards-conformance
|
||||||
|
|
||||||
|
#set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /W3 /permissive-")
|
||||||
|
message(STATUS "MSVC -> forcing use of statically-linked runtime.")
|
||||||
|
STRING(REPLACE "/MD" "/MT" CMAKE_CXX_FLAGS_RELEASE ${CMAKE_CXX_FLAGS_RELEASE})
|
||||||
|
STRING(REPLACE "/MDd" "/MTd" CMAKE_CXX_FLAGS_DEBUG ${CMAKE_CXX_FLAGS_DEBUG})
|
||||||
|
#-DCMAKE_TOOLCHAIN_FILE=C:/vcpkg/scripts/buildsystems/vcpkg.cmake -DVCPKG_TARGET_TRIPLET=x64-windows-static
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
target_link_libraries(${PROJECT_NAME} PRIVATE rstrtmgr discord-rpc CURL::libcurl ZLIB::ZLIB)
|
||||||
target_include_directories(${PROJECT_NAME} PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>)
|
target_include_directories(${PROJECT_NAME} PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>)
|
@ -6,8 +6,6 @@
|
|||||||
/// Created by Anonymous275 on 7/25/2020
|
/// Created by Anonymous275 on 7/25/2020
|
||||||
///
|
///
|
||||||
#include "Network/network.h"
|
#include "Network/network.h"
|
||||||
#include "Security/Init.h"
|
|
||||||
|
|
||||||
#include <WinSock2.h>
|
#include <WinSock2.h>
|
||||||
#include <WS2tcpip.h>
|
#include <WS2tcpip.h>
|
||||||
#include "Logger.h"
|
#include "Logger.h"
|
||||||
|
@ -256,8 +256,8 @@ void LegitimacyCheck(){
|
|||||||
if(fs::exists(Result)){
|
if(fs::exists(Result)){
|
||||||
if(!Find("284160.json",Result))Exit(2);
|
if(!Find("284160.json",Result))Exit(2);
|
||||||
if(FindHack(Result)) {
|
if(FindHack(Result)) {
|
||||||
std::string maliciousFileName = fs::directory_iterator(Result)->path().filename().string();
|
std::string Name = fs::directory_iterator(Result)->path().filename().string();
|
||||||
error("Found malicious file " + maliciousFileName + ". Please remove it in order to play\n");
|
error("Found malicious file " + Name + ". Please remove it in order to play\n");
|
||||||
SteamExit(1);
|
SteamExit(1);
|
||||||
}
|
}
|
||||||
}else Exit(3);
|
}else Exit(3);
|
||||||
|
@ -27,7 +27,7 @@ std::string GetVer(){
|
|||||||
return "1.80";
|
return "1.80";
|
||||||
}
|
}
|
||||||
std::string GetPatch(){
|
std::string GetPatch(){
|
||||||
return ".10";
|
return ".91";
|
||||||
}
|
}
|
||||||
void ReLaunch(int argc,char*args[]){
|
void ReLaunch(int argc,char*args[]){
|
||||||
std::string Arg;
|
std::string Arg;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user