2
0
mirror of https://github.com/rehlds/rehlds.git synced 2025-01-17 00:58:18 +03:00
Fix unknown function __cpuidex when used in 3rd party
This commit is contained in:
s1lentq 2017-01-07 19:59:56 +07:00
parent 428b05e8ec
commit 0c8cb64af7
3 changed files with 6 additions and 4 deletions

View File

@ -219,10 +219,6 @@ void Host_InitializeGameDLL(void)
SV_CheckBlendingInterface();
SV_CheckSaveGameCommentInterface();
Cbuf_Execute();
#ifdef REHLDS_FIXES // DONE: Set cstrike flags on server start
SetCStrikeFlags();
#endif
}
void Host_Motd_f(void)

View File

@ -699,6 +699,10 @@ bool CDedicatedServerAPI::Init_noVirt(char *basedir, char *cmdline, CreateInterf
Q_snprintf(text, ARRAYSIZE(text), "exec %s\n", servercfgfile.string);
text[255] = 0;
Cbuf_InsertText(text);
#ifdef REHLDS_FIXES
SetCStrikeFlags();
#endif
return true;
}

View File

@ -29,6 +29,8 @@
#if defined(__GNUC__)
#include <cpuid.h>
#elif _MSC_VER >= 1400 && !defined(ASMLIB_H)
#include <intrin.h> // __cpuidex
#endif
#define SSE3_FLAG (1<<0)