1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
/*
Copyright (C) 1997-2001 Id Software, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#ifndef SYSTEM_H
#define SYSTEM_H
#include "common/utils.h"
// loads the dll and returns entry pointer
void *Sys_LoadLibrary(const char *path, const char *sym, void **handle);
void Sys_FreeLibrary(void *handle);
void *Sys_GetProcAddress(void *handle, const char *sym);
unsigned Sys_Milliseconds(void);
void Sys_Sleep(int msec);
void Sys_Init(void);
void Sys_AddDefaultConfig(void);
#if USE_SYSCON
void Sys_RunConsole(void);
void Sys_ConsoleOutput(const char *string);
void Sys_SetConsoleTitle(const char *title);
void Sys_SetConsoleColor(color_index_t color);
void Sys_Printf(const char *fmt, ...) q_printf(1, 2);
#else
#define Sys_RunConsole() (void)0
#define Sys_ConsoleOutput(string) (void)0
#define Sys_SetConsoleTitle(title) (void)0
#define Sys_SetConsoleColor(color) (void)0
#define Sys_Printf(...) (void)0
#endif
void Sys_Error(const char *error, ...) q_noreturn q_printf(1, 2);
void Sys_Quit(void) q_noreturn;
void Sys_ListFiles_r(const char *path, const char *filter,
unsigned flags, size_t baselen, int *count_p, void **files, int depth);
void Sys_DebugBreak(void);
#if USE_AC_CLIENT
qboolean Sys_GetAntiCheatAPI(void);
#endif
extern cvar_t *sys_basedir;
extern cvar_t *sys_libdir;
extern cvar_t *sys_homedir;
extern cvar_t *sys_forcegamelib;
#endif // SYSTEM_H
|