mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2026-04-24 00:46:59 +00:00
Build libzip statically
This commit is contained in:
@@ -30,11 +30,8 @@ endif()
|
|||||||
set(SENTRY_BACKEND breakpad)
|
set(SENTRY_BACKEND breakpad)
|
||||||
add_subdirectory("deps/sentry-native")
|
add_subdirectory("deps/sentry-native")
|
||||||
|
|
||||||
find_package(libzip)
|
set(BUILD_SHARED_LIBS OFF)
|
||||||
if (NOT LIBZIP_FOUND)
|
add_subdirectory("deps/libzip")
|
||||||
set(BUILD_SHARED_LIBS OFF)
|
|
||||||
add_subdirectory("deps/libzip")
|
|
||||||
endif()
|
|
||||||
|
|
||||||
message(STATUS "Setting compiler flags")
|
message(STATUS "Setting compiler flags")
|
||||||
if (WIN32)
|
if (WIN32)
|
||||||
|
|||||||
@@ -732,7 +732,7 @@ void TNetwork::SplitLoad(TClient& c, size_t Sent, size_t Size, bool D, const std
|
|||||||
TCPSock = c.GetDownSock();
|
TCPSock = c.GetDownSock();
|
||||||
else
|
else
|
||||||
TCPSock = c.GetTCPSock();
|
TCPSock = c.GetTCPSock();
|
||||||
beammp_info("Split load Socket " + std::to_string(TCPSock));
|
beammp_debug("Split load Socket " + std::to_string(TCPSock));
|
||||||
while (c.GetStatus() > -1 && Sent < Size) {
|
while (c.GetStatus() > -1 && Sent < Size) {
|
||||||
size_t Diff = Size - Sent;
|
size_t Diff = Size - Sent;
|
||||||
if (Diff > Split) {
|
if (Diff > Split) {
|
||||||
|
|||||||
Reference in New Issue
Block a user