mirror of https://github.com/FWGS/hlsdk-xash3d
client: include vcs info to the build and register variables
This commit is contained in:
parent
73590dd0a3
commit
f6988f4e49
|
@ -123,7 +123,9 @@ set (CLDLL_SOURCES
|
||||||
train.cpp
|
train.cpp
|
||||||
tri.cpp
|
tri.cpp
|
||||||
util.cpp
|
util.cpp
|
||||||
view.cpp)
|
view.cpp
|
||||||
|
../game_shared/vcs_info.cpp
|
||||||
|
)
|
||||||
|
|
||||||
if (USE_VGUI)
|
if (USE_VGUI)
|
||||||
list(APPEND CLDLL_SOURCES
|
list(APPEND CLDLL_SOURCES
|
||||||
|
|
|
@ -42,6 +42,7 @@ extern "C"
|
||||||
}
|
}
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
#include "vcs_info.h"
|
||||||
|
|
||||||
cl_enginefunc_t gEngfuncs;
|
cl_enginefunc_t gEngfuncs;
|
||||||
CHud gHUD;
|
CHud gHUD;
|
||||||
|
@ -171,6 +172,9 @@ int DLLEXPORT Initialize( cl_enginefunc_t *pEnginefuncs, int iVersion )
|
||||||
|
|
||||||
EV_HookEvents();
|
EV_HookEvents();
|
||||||
|
|
||||||
|
gEngfuncs.pfnRegisterVariable( "cl_game_build_commit", g_VCSInfo_Commit, 0 );
|
||||||
|
gEngfuncs.pfnRegisterVariable( "cl_game_build_branch", g_VCSInfo_Branch, 0 );
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue