67 fprintf(stderr,
"%s", text);
106#define PROPERTY_HASH_SIZE 32
108#define MAX_PROPERTY_NAME 32
110typedef struct test_property_s {
142 element->
value = value;
147 Com_Printf(
"Register test property \"%s\" = \"%s\"\n",
name, value);
188 if (element ==
nullptr) {
189 Com_Printf(
"WARNING: Test property \"%s\" not found. nullptr returned.\n",
name);
192 return element->
value;
203 if (element ==
nullptr) {
204 Com_Printf(
"WARNING: Test property \"%s\" not found. 0 returned.\n",
name);
207 return atoi(element->
value);
218 if (element ==
nullptr) {
219 Com_Printf(
"WARNING: Test property \"%s\" not found. 0 returned.\n",
name);
222 return atol(element->
value);
void CL_ShutdownLua(void)
Shutdown the ui-lua interfacing environment.
void PTL_InitStartup(void)
Clears particle data.
void Cbuf_Init(void)
allocates an initial text buffer that will grow as needed
memPool_t * com_cmdSysPool
memPool_t * com_cvarSysPool
memPool_t * com_aliasSysPool
void Com_Printf(const char *const fmt,...)
memPool_t * com_genericPool
memPool_t * com_cmodelSysPool
memPool_t * com_fileSysPool
void SV_Shutdown(const char *finalmsg, bool reconnect)
Called when each game quits, before Sys_Quit or Sys_Error.
void SV_Init(void)
Only called once at startup, not for each game.
void Cvar_Init(void)
Reads in all archived cvars.
cvar_t * Cvar_Get(const char *var_name, const char *var_value, int flags, const char *desc)
Init or return a cvar.
void FS_InitFilesystem(bool writeToHomeDir)
void FS_AddHomeAsGameDirectory(const char *dir, bool write)
void FS_Shutdown(void)
Cleanup function.
void FS_AddGameDirectory(const char *dir, bool write)
Adds the directory to the head of the search path.
void FS_ExecAutoexec(void)
void Sys_Error(const char *error,...)
#define Mem_CreatePool(name)
static wrapCache_t * hash[MAX_WRAP_HASH]
QGL_EXTERN GLuint GLsizei GLsizei GLint GLenum GLchar * name
void R_ShutdownImages(void)
#define Q_strcasecmp(a, b)
unsigned int Com_HashKey(const char *name, int hashsize)
returns hash key for a string
void Q_strncpyz(char *dest, const char *src, size_t destsize)
Safe strncpy that ensures a trailing zero.
int Q_vsnprintf(char *str, size_t size, const char *format, va_list ap)
Safe (null terminating) vsnprintf implementation.
char name[MAX_PROPERTY_NAME]
struct test_property_s * hash_next
struct test_property_s * next
void TEST_RegisterProperty(const char *name, const char *value)
static const test_property_t * TEST_GetProperty(const char *name)
static test_property_t * test_property_hash[PROPERTY_HASH_SIZE]
#define MAX_PROPERTY_NAME
bool TEST_ExistsProperty(const char *name)
const char * TEST_GetStringProperty(const char *name)
void TEST_vPrintfSilent(const char *fmt, va_list argptr)
static test_property_t * test_property
#define PROPERTY_HASH_SIZE
int TEST_GetIntProperty(const char *name)
long TEST_GetLongProperty(const char *name)
void TEST_vPrintf(const char *fmt, va_list argptr)
void UI_Shutdown(void)
Reset and free the UI data hunk.