mirror of
https://github.com/ENSL/NS.git
synced 2024-12-03 17:51:53 +00:00
fd05950eea
o added steam icon o updated liblist.gam to report version 3.2 git-svn-id: https://unknownworlds.svn.cloudforge.com/ns1@359 67975925-1194-0748-b3d5-c16f83f1a3a1
38 lines
768 B
C++
38 lines
768 B
C++
#include "AvHConstants.h"
|
|
#include <cstring>
|
|
|
|
#ifdef AVH_SERVER
|
|
#include "common/mathlib.h"
|
|
#include "common/const.h"
|
|
#include "engine/edict.h"
|
|
#include "engine/eiface.h"
|
|
#include "dlls/enginecallback.h"
|
|
#else
|
|
#include "cl_dll/wrect.h"
|
|
#include "cl_dll/cl_dll.h"
|
|
#include "dlls/extdll.h"
|
|
#endif
|
|
|
|
const char* getModDirectory(void)
|
|
{
|
|
static char theModDirectory[512];
|
|
static bool theIsComputed = false;
|
|
|
|
if(!theIsComputed)
|
|
{
|
|
#ifdef AVH_SERVER
|
|
GET_GAME_DIR(theModDirectory);
|
|
#else
|
|
const char *pchGameDirT = gEngfuncs.pfnGetGameDirectory();
|
|
strcpy(theModDirectory, pchGameDirT);
|
|
#endif
|
|
|
|
theIsComputed = true; //don't compute this again
|
|
}
|
|
return theModDirectory;
|
|
}
|
|
|
|
const char* getModName(void)
|
|
{
|
|
return kAvHGameName;
|
|
}
|