mirror of
https://github.com/WPMGPRoSToTeMa/SafeNameAndChat.git
synced 2025-03-13 05:30:16 +03:00
Moved initialization into Meta_Attach
This commit is contained in:
parent
7a9ecbe842
commit
1f9b8adb02
4
Main.cpp
4
Main.cpp
@ -422,8 +422,6 @@ void GiveFnptrsToDll(enginefuncs_t *pEngFuncs, globalvars_t *pGlobalVars) {
|
|||||||
memcpy(&g_engfuncs, pEngFuncs, sizeof(g_engfuncs));
|
memcpy(&g_engfuncs, pEngFuncs, sizeof(g_engfuncs));
|
||||||
gpGlobals = pGlobalVars;
|
gpGlobals = pGlobalVars;
|
||||||
|
|
||||||
Init();
|
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
__asm
|
__asm
|
||||||
{
|
{
|
||||||
@ -801,6 +799,8 @@ C_DLLEXPORT int Meta_Attach(PLUG_LOADTIME now, META_FUNCTIONS *pFunctionTable, m
|
|||||||
gpMetaGlobals = pMGlobals;
|
gpMetaGlobals = pMGlobals;
|
||||||
gpGamedllFuncs = pGamedllFuncs;
|
gpGamedllFuncs = pGamedllFuncs;
|
||||||
|
|
||||||
|
Init();
|
||||||
|
|
||||||
CVAR_REGISTER(&g_cvarVersion);
|
CVAR_REGISTER(&g_cvarVersion);
|
||||||
CVAR_SET_STRING(g_cvarVersion.name, g_cvarVersion.string);
|
CVAR_SET_STRING(g_cvarVersion.name, g_cvarVersion.string);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user