2005-11-14 20:18:27 +00:00
|
|
|
#include "AvHConstants.h"
|
|
|
|
#include <cstring>
|
|
|
|
|
2005-11-19 19:59:42 +00:00
|
|
|
#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
|
2005-11-14 20:18:27 +00:00
|
|
|
|
|
|
|
const char* getModDirectory(void)
|
|
|
|
{
|
2005-11-19 19:59:42 +00:00
|
|
|
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;
|
2005-11-14 20:18:27 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
const char* getModName(void)
|
|
|
|
{
|
|
|
|
return kAvHGameName;
|
|
|
|
}
|