mirror of
https://github.com/rehlds/rehlds.git
synced 2024-12-29 08:05:50 +03:00
launcher: support xp
This commit is contained in:
parent
f2b080ebba
commit
33d76dd68e
@ -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"
|
||||
}
|
||||
|
@ -129,6 +129,7 @@
|
||||
<PreprocessorDefinitions>HLTV;WIN32;_DEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<AdditionalIncludeDirectories>$(ProjectDir)\..\src;$(ProjectDir)\..\..\;$(ProjectDir)\..\..\..\;$(ProjectDir)\..\..\..\common;$(ProjectDir)\..\..\..\engine;$(ProjectDir)\..\..\..\public;$(ProjectDir)\..\..\..\public\rehlds;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PrecompiledHeaderFile>precompiled.h</PrecompiledHeaderFile>
|
||||
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Windows</SubSystem>
|
||||
@ -159,6 +160,7 @@
|
||||
<PreprocessorDefinitions>HLTV;WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<AdditionalIncludeDirectories>$(ProjectDir)\..\src;$(ProjectDir)\..\..\;$(ProjectDir)\..\..\..\;$(ProjectDir)\..\..\..\common;$(ProjectDir)\..\..\..\engine;$(ProjectDir)\..\..\..\public;$(ProjectDir)\..\..\..\public\rehlds;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PrecompiledHeaderFile>precompiled.h</PrecompiledHeaderFile>
|
||||
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Windows</SubSystem>
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user