diff options
author | Andrey Nazarov <skuller@skuller.net> | 2008-04-23 15:02:41 +0000 |
---|---|---|
committer | Andrey Nazarov <skuller@skuller.net> | 2008-04-23 15:02:41 +0000 |
commit | 49e6170b49fbb933eddec6d0e3f946320c68832f (patch) | |
tree | 88d228d6f89103710074fdba041ce80584d5caa6 /source/com_public.h | |
parent | 8c795585fb0c6c9178d9981f6943da04b7279205 (diff) |
Added `dumpents' server command.
Added support for `cl_noskins' value of 2 (default all female
skins to `female/athena', all male skins to `male/grunt').
Renamed `scoreshot' command to `aashot', added `aadump' command.
Fixed several alignment issues on ARM architecture.
Server browser menu now indicates full and password protected
servers with color codes.
Implemented history search in console with Ctrl+R, Ctrl+S.
Removed `cl_railtrail_alpha' variable, all `cl_rail*_color' variables now
accept colors in #RRGGBBAA format.
Added `map_override' cvar (enables loading map entity lump from
external maps/*.ent file).
Made `quit' command accept extra arguments.
Made `draw' command accept arbitrary colors in #RRGGBBAA format.
Fixed debian packages.
Diffstat (limited to 'source/com_public.h')
-rw-r--r-- | source/com_public.h | 90 |
1 files changed, 46 insertions, 44 deletions
diff --git a/source/com_public.h b/source/com_public.h index 9ac3fb5..c387b54 100644 --- a/source/com_public.h +++ b/source/com_public.h @@ -26,6 +26,50 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. /* ============================================================== +COMMON + +============================================================== +*/ + +#define MAXPRINTMSG 4096 + +// memory tags to allow dynamic memory to be cleaned up +typedef enum memtag_e { + TAG_FREE, // should have never been set + TAG_STATIC, + + TAG_GENERAL, + TAG_CMD, + TAG_CVAR, + TAG_FILESYSTEM, + TAG_RENDERER, + TAG_UI, + TAG_SERVER, + TAG_MVD, + TAG_SOUND, + TAG_CMODEL, + + TAG_MAX, + + TAG_GAME = 765, // clear when unloading the dll + TAG_LEVEL = 766 // clear when loading a new level +} memtag_t; + +typedef struct commonAPI_s { + void (* q_noreturn Error)( comErrorType_t code, const char *str ); + void (*Print)( comPrintType_t type, const char *str ); + + void *(*TagMalloc)( size_t size, memtag_t tag ); + void *(*Realloc)( void *ptr, size_t size ); + void (*Free)( void *ptr ); +} commonAPI_t; + +extern commonAPI_t com; + + +/* +============================================================== + CMD ============================================================== @@ -48,6 +92,7 @@ typedef struct genctx_s { char **matches; int count, size; void *data; + qboolean ignorecase; } genctx_t; typedef struct cmdreg_s { @@ -177,7 +222,7 @@ typedef struct fsAPI_s { int (*Tell)( fileHandle_t f ); int (*RawTell)( fileHandle_t f ); size_t (*LoadFile)( const char *path, void **buffer ); - size_t (*LoadFileEx)( const char *path, void **buffer, int flags ); + size_t (*LoadFileEx)( const char *path, void **buffer, int flags, memtag_t tag ); void *(*AllocTempMem)( size_t length ); void (*FreeFile)( void *buffer ); void **(*ListFiles)( const char *path, const char *extension, int flags, int *numFiles ); @@ -189,49 +234,6 @@ extern fsAPI_t fs; /* ============================================================== -COMMON - -============================================================== -*/ - -#define MAXPRINTMSG 4096 - -// memory tags to allow dynamic memory to be cleaned up -typedef enum memtag_e { - TAG_FREE, // should have never been set - TAG_STATIC, - - TAG_GENERAL, - TAG_CMD, - TAG_CVAR, - TAG_FILESYSTEM, - TAG_RENDERER, - TAG_UI, - TAG_SERVER, - TAG_MVD, - TAG_SOUND, - TAG_CMODEL, - - TAG_MAX, - - TAG_GAME = 765, // clear when unloading the dll - TAG_LEVEL = 766 // clear when loading a new level -} memtag_t; - -typedef struct commonAPI_s { - void (* q_noreturn Error)( comErrorType_t code, const char *str ); - void (*Print)( comPrintType_t type, const char *str ); - - void *(*TagMalloc)( size_t size, memtag_t tag ); - void *(*Realloc)( void *ptr, size_t size ); - void (*Free)( void *ptr ); -} commonAPI_t; - -extern commonAPI_t com; - -/* -============================================================== - SYSTEM ============================================================== |