From 33d76dd68eb101574094b3ffa89d332d9caf16c7 Mon Sep 17 00:00:00 2001 From: s1lent Date: Sat, 6 May 2017 20:57:20 +0700 Subject: [PATCH] launcher: support xp --- rehlds/HLTV/Console/build.gradle | 4 +++- rehlds/HLTV/Console/msvc/Console.vcxproj | 2 ++ rehlds/HLTV/Console/src/System.cpp | 2 +- rehlds/dedicated/build.gradle | 2 ++ 4 files changed, 8 insertions(+), 2 deletions(-) diff --git a/rehlds/HLTV/Console/build.gradle b/rehlds/HLTV/Console/build.gradle index 31d9a2a..0505a1d 100644 --- a/rehlds/HLTV/Console/build.gradle +++ b/rehlds/HLTV/Console/build.gradle @@ -31,7 +31,9 @@ void setupToolchain(NativeBinarySpec b) { pchSourceSet: 'hltv_pch' ); - cfg.singleDefines('_CRT_SECURE_NO_WARNINGS') + cfg.singleDefines('_CRT_SECURE_NO_WARNINGS'); + + cfg.linkerOptions.args('/SUBSYSTEM:WINDOWS,5.01'); cfg.compilerOptions.args '/Ob2', '/Oi', '/GF', '/GR-' cfg.extraLibs "user32.lib" } diff --git a/rehlds/HLTV/Console/msvc/Console.vcxproj b/rehlds/HLTV/Console/msvc/Console.vcxproj index c1bd1ca..b605cc9 100644 --- a/rehlds/HLTV/Console/msvc/Console.vcxproj +++ b/rehlds/HLTV/Console/msvc/Console.vcxproj @@ -129,6 +129,7 @@ HLTV;WIN32;_DEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions) $(ProjectDir)\..\src;$(ProjectDir)\..\..\;$(ProjectDir)\..\..\..\;$(ProjectDir)\..\..\..\common;$(ProjectDir)\..\..\..\engine;$(ProjectDir)\..\..\..\public;$(ProjectDir)\..\..\..\public\rehlds;%(AdditionalIncludeDirectories) precompiled.h + MultiThreadedDebug Windows @@ -159,6 +160,7 @@ HLTV;WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions) $(ProjectDir)\..\src;$(ProjectDir)\..\..\;$(ProjectDir)\..\..\..\;$(ProjectDir)\..\..\..\common;$(ProjectDir)\..\..\..\engine;$(ProjectDir)\..\..\..\public;$(ProjectDir)\..\..\..\public\rehlds;%(AdditionalIncludeDirectories) precompiled.h + MultiThreaded Windows diff --git a/rehlds/HLTV/Console/src/System.cpp b/rehlds/HLTV/Console/src/System.cpp index b5e3306..ccab184 100644 --- a/rehlds/HLTV/Console/src/System.cpp +++ b/rehlds/HLTV/Console/src/System.cpp @@ -1016,7 +1016,7 @@ System::library_t *System::GetLibrary(char *name) _snprintf(lib->name, sizeof(lib->name), "%s." LIBRARY_PREFIX, fixedname); lib->handle = (CSysModule *)Sys_LoadModule(lib->name); if (!lib->handle) { - DPrintf("ERROR! System::GetLibrary: coulnd't load library (%s).\n", lib->name); + DPrintf("WARNING! System::GetLibrary: coulnd't load library (%s).\n", lib->name); free(lib); return nullptr; } diff --git a/rehlds/dedicated/build.gradle b/rehlds/dedicated/build.gradle index d11e8a9..a759f32 100644 --- a/rehlds/dedicated/build.gradle +++ b/rehlds/dedicated/build.gradle @@ -35,6 +35,8 @@ void setupToolchain(NativeBinarySpec b) { ); cfg.singleDefines('_CRT_SECURE_NO_WARNINGS'); + + cfg.linkerOptions.args('/SUBSYSTEM:WINDOWS,5.01'); cfg.compilerOptions.args '/Ob2', '/Oi', '/GF', '/GR-'; cfg.extraLibs "ws2_32.lib", "winmm.lib", "user32.lib", "advapi32.lib", "shell32.lib" }