mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-10 15:21:44 +00:00
Make all names in render interface const
This commit is contained in:
parent
ddf31c962c
commit
2274e86481
31 changed files with 155 additions and 155 deletions
|
@ -303,7 +303,7 @@ static char findpattern[MAX_OSPATH];
|
|||
static DIR *fdir;
|
||||
|
||||
char *
|
||||
Sys_FindFirst(char *path, unsigned musthave, unsigned canhave)
|
||||
Sys_FindFirst(const char *path, unsigned musthave, unsigned canhave)
|
||||
{
|
||||
struct dirent *d;
|
||||
char *p;
|
||||
|
|
|
@ -49,7 +49,7 @@ qboolean menubound[K_LAST]; /* if true, can't be rebound while in menu */
|
|||
int key_repeats[K_LAST]; /* if > 1, it is autorepeating */
|
||||
qboolean keydown[K_LAST];
|
||||
|
||||
qboolean Cmd_IsComplete(char *cmd);
|
||||
qboolean Cmd_IsComplete(const char *cmd);
|
||||
|
||||
typedef struct
|
||||
{
|
||||
|
@ -268,7 +268,7 @@ keyname_t keynames[] = {
|
|||
void
|
||||
CompleteCommand(void)
|
||||
{
|
||||
char *cmd, *s;
|
||||
const char *cmd, *s;
|
||||
|
||||
s = key_lines[edit_line] + 1;
|
||||
|
||||
|
@ -304,7 +304,7 @@ void
|
|||
CompleteMapNameCommand(void)
|
||||
{
|
||||
int i;
|
||||
char *s, *t, *cmdArg;
|
||||
const char *s, *t, *cmdArg;
|
||||
const char *mapCmdString = "map ";
|
||||
|
||||
s = key_lines[edit_line] + 1;
|
||||
|
|
|
@ -111,13 +111,13 @@ RDraw_CharScaled(int x, int y, int num, float scale)
|
|||
}
|
||||
|
||||
image_t *
|
||||
RDraw_FindPic(char *name)
|
||||
RDraw_FindPic(const char *name)
|
||||
{
|
||||
return R_FindPic(name, (findimage_t)R_FindImage);
|
||||
}
|
||||
|
||||
void
|
||||
RDraw_GetPicSize(int *w, int *h, char *pic)
|
||||
RDraw_GetPicSize(int *w, int *h, const char *pic)
|
||||
{
|
||||
image_t *gl;
|
||||
|
||||
|
@ -134,7 +134,7 @@ RDraw_GetPicSize(int *w, int *h, char *pic)
|
|||
}
|
||||
|
||||
void
|
||||
RDraw_StretchPic(int x, int y, int w, int h, char *pic)
|
||||
RDraw_StretchPic(int x, int y, int w, int h, const char *pic)
|
||||
{
|
||||
image_t *gl;
|
||||
|
||||
|
@ -179,7 +179,7 @@ RDraw_StretchPic(int x, int y, int w, int h, char *pic)
|
|||
}
|
||||
|
||||
void
|
||||
RDraw_PicScaled(int x, int y, char *pic, float factor)
|
||||
RDraw_PicScaled(int x, int y, const char *pic, float factor)
|
||||
{
|
||||
image_t *gl;
|
||||
|
||||
|
@ -229,7 +229,7 @@ RDraw_PicScaled(int x, int y, char *pic, float factor)
|
|||
* refresh window.
|
||||
*/
|
||||
void
|
||||
RDraw_TileClear(int x, int y, int w, int h, char *pic)
|
||||
RDraw_TileClear(int x, int y, int w, int h, const char *pic)
|
||||
{
|
||||
image_t *image;
|
||||
|
||||
|
|
|
@ -1874,9 +1874,9 @@ R_DrawBeam(entity_t *e)
|
|||
extern int RI_PrepareForWindow(void);
|
||||
extern int RI_InitContext(void* win);
|
||||
|
||||
extern void RI_BeginRegistration(char *model);
|
||||
extern struct model_s * RI_RegisterModel(char *name);
|
||||
extern struct image_s * RI_RegisterSkin(char *name);
|
||||
extern void RI_BeginRegistration(const char *model);
|
||||
extern struct model_s * RI_RegisterModel(const char *name);
|
||||
extern struct image_s * RI_RegisterSkin(const char *name);
|
||||
|
||||
extern void RI_SetSky(const char *name, float rotate, int autorotate, const vec3_t axis);
|
||||
extern void RI_EndRegistration(void);
|
||||
|
|
|
@ -399,12 +399,12 @@ void *RI_GetProcAddress (const char* proc);
|
|||
void RI_GetDrawableSize(int* width, int* height);
|
||||
|
||||
/* g11_draw */
|
||||
extern image_t * RDraw_FindPic(char *name);
|
||||
extern void RDraw_GetPicSize(int *w, int *h, char *pic);
|
||||
extern void RDraw_PicScaled(int x, int y, char *pic, float factor);
|
||||
extern void RDraw_StretchPic(int x, int y, int w, int h, char *pic);
|
||||
extern image_t * RDraw_FindPic(const char *name);
|
||||
extern void RDraw_GetPicSize(int *w, int *h, const char *pic);
|
||||
extern void RDraw_PicScaled(int x, int y, const char *pic, float factor);
|
||||
extern void RDraw_StretchPic(int x, int y, int w, int h, const char *pic);
|
||||
extern void RDraw_CharScaled(int x, int y, int num, float scale);
|
||||
extern void RDraw_TileClear(int x, int y, int w, int h, char *pic);
|
||||
extern void RDraw_TileClear(int x, int y, int w, int h, const char *pic);
|
||||
extern void RDraw_Fill(int x, int y, int w, int h, int c);
|
||||
extern void RDraw_FadeScreen(void);
|
||||
extern void RDraw_StretchRaw(int x, int y, int w, int h, int cols, int rows, const byte *data, int bits);
|
||||
|
|
|
@ -167,13 +167,13 @@ GL3_Draw_CharScaled(int x, int y, int num, float scale)
|
|||
}
|
||||
|
||||
gl3image_t *
|
||||
GL3_Draw_FindPic(char *name)
|
||||
GL3_Draw_FindPic(const char *name)
|
||||
{
|
||||
return R_FindPic(name, (findimage_t)GL3_FindImage);
|
||||
}
|
||||
|
||||
void
|
||||
GL3_Draw_GetPicSize(int *w, int *h, char *pic)
|
||||
GL3_Draw_GetPicSize(int *w, int *h, const char *pic)
|
||||
{
|
||||
gl3image_t *gl;
|
||||
|
||||
|
@ -190,7 +190,7 @@ GL3_Draw_GetPicSize(int *w, int *h, char *pic)
|
|||
}
|
||||
|
||||
void
|
||||
GL3_Draw_StretchPic(int x, int y, int w, int h, char *pic)
|
||||
GL3_Draw_StretchPic(int x, int y, int w, int h, const char *pic)
|
||||
{
|
||||
gl3image_t *gl = R_FindPic(pic, (findimage_t)GL3_FindImage);
|
||||
|
||||
|
@ -207,7 +207,7 @@ GL3_Draw_StretchPic(int x, int y, int w, int h, char *pic)
|
|||
}
|
||||
|
||||
void
|
||||
GL3_Draw_PicScaled(int x, int y, char *pic, float factor)
|
||||
GL3_Draw_PicScaled(int x, int y, const char *pic, float factor)
|
||||
{
|
||||
gl3image_t *gl = R_FindPic(pic, (findimage_t)GL3_FindImage);
|
||||
if (!gl)
|
||||
|
@ -228,7 +228,7 @@ GL3_Draw_PicScaled(int x, int y, char *pic, float factor)
|
|||
* refresh window.
|
||||
*/
|
||||
void
|
||||
GL3_Draw_TileClear(int x, int y, int w, int h, char *pic)
|
||||
GL3_Draw_TileClear(int x, int y, int w, int h, const char *pic)
|
||||
{
|
||||
gl3image_t *image = R_FindPic(pic, (findimage_t)GL3_FindImage);
|
||||
if (!image)
|
||||
|
|
|
@ -664,7 +664,7 @@ GL3_FindImage(const char *name, imagetype_t type)
|
|||
}
|
||||
|
||||
gl3image_t *
|
||||
GL3_RegisterSkin(char *name)
|
||||
GL3_RegisterSkin(const char *name)
|
||||
{
|
||||
return GL3_FindImage(name, it_skin);
|
||||
}
|
||||
|
|
|
@ -614,7 +614,7 @@ GL3_Mod_FreeAll(void)
|
|||
* Loads in a model for the given name
|
||||
*/
|
||||
static gl3model_t *
|
||||
Mod_ForName (char *name, gl3model_t *parent_model, qboolean crash)
|
||||
Mod_ForName (const char *name, gl3model_t *parent_model, qboolean crash)
|
||||
{
|
||||
gl3model_t *mod;
|
||||
void *buf;
|
||||
|
@ -746,7 +746,7 @@ Mod_ForName (char *name, gl3model_t *parent_model, qboolean crash)
|
|||
* Specifies the model that will be used as the world
|
||||
*/
|
||||
void
|
||||
GL3_BeginRegistration(char *model)
|
||||
GL3_BeginRegistration(const char *model)
|
||||
{
|
||||
char fullname[MAX_QPATH];
|
||||
cvar_t *flushmap;
|
||||
|
@ -774,7 +774,7 @@ GL3_BeginRegistration(char *model)
|
|||
}
|
||||
|
||||
struct model_s *
|
||||
GL3_RegisterModel(char *name)
|
||||
GL3_RegisterModel(const char *name)
|
||||
{
|
||||
gl3model_t *mod;
|
||||
|
||||
|
|
|
@ -405,8 +405,8 @@ extern void GL3_SetDefaultState(void);
|
|||
extern int registration_sequence;
|
||||
extern void GL3_Mod_Init(void);
|
||||
extern void GL3_Mod_FreeAll(void);
|
||||
extern void GL3_BeginRegistration(char *model);
|
||||
extern struct model_s * GL3_RegisterModel(char *name);
|
||||
extern void GL3_BeginRegistration(const char *model);
|
||||
extern struct model_s * GL3_RegisterModel(const char *name);
|
||||
extern void GL3_EndRegistration(void);
|
||||
extern void GL3_Mod_Modellist_f(void);
|
||||
extern const byte* GL3_Mod_ClusterPVS(int cluster, const gl3model_t *model);
|
||||
|
@ -414,13 +414,13 @@ extern const byte* GL3_Mod_ClusterPVS(int cluster, const gl3model_t *model);
|
|||
// gl3_draw.c
|
||||
extern void GL3_Draw_InitLocal(void);
|
||||
extern void GL3_Draw_ShutdownLocal(void);
|
||||
extern gl3image_t * GL3_Draw_FindPic(char *name);
|
||||
extern void GL3_Draw_GetPicSize(int *w, int *h, char *pic);
|
||||
extern gl3image_t * GL3_Draw_FindPic(const char *name);
|
||||
extern void GL3_Draw_GetPicSize(int *w, int *h, const char *pic);
|
||||
|
||||
extern void GL3_Draw_PicScaled(int x, int y, char *pic, float factor);
|
||||
extern void GL3_Draw_StretchPic(int x, int y, int w, int h, char *pic);
|
||||
extern void GL3_Draw_PicScaled(int x, int y, const char *pic, float factor);
|
||||
extern void GL3_Draw_StretchPic(int x, int y, int w, int h, const char *pic);
|
||||
extern void GL3_Draw_CharScaled(int x, int y, int num, float scale);
|
||||
extern void GL3_Draw_TileClear(int x, int y, int w, int h, char *pic);
|
||||
extern void GL3_Draw_TileClear(int x, int y, int w, int h, const char *pic);
|
||||
extern void GL3_DrawFrameBufferObject(int x, int y, int w, int h, GLuint fboTexture, const float v_blend[4]);
|
||||
extern void GL3_Draw_Fill(int x, int y, int w, int h, int c);
|
||||
extern void GL3_Draw_FadeScreen(void);
|
||||
|
@ -446,7 +446,7 @@ extern gl3image_t *GL3_LoadPic(char *name, byte *pic, int width, int realwidth,
|
|||
int height, int realheight, size_t data_size,
|
||||
imagetype_t type, int bits);
|
||||
extern gl3image_t *GL3_FindImage(const char *name, imagetype_t type);
|
||||
extern gl3image_t *GL3_RegisterSkin(char *name);
|
||||
extern gl3image_t *GL3_RegisterSkin(const char *name);
|
||||
extern void GL3_ShutdownImages(void);
|
||||
extern void GL3_FreeUnusedImages(void);
|
||||
extern qboolean GL3_ImageHasFreeSpace(void);
|
||||
|
|
|
@ -161,13 +161,13 @@ GL4_Draw_CharScaled(int x, int y, int num, float scale)
|
|||
}
|
||||
|
||||
gl4image_t *
|
||||
GL4_Draw_FindPic(char *name)
|
||||
GL4_Draw_FindPic(const char *name)
|
||||
{
|
||||
return R_FindPic(name, (findimage_t)GL4_FindImage);
|
||||
}
|
||||
|
||||
void
|
||||
GL4_Draw_GetPicSize(int *w, int *h, char *pic)
|
||||
GL4_Draw_GetPicSize(int *w, int *h, const char *pic)
|
||||
{
|
||||
gl4image_t *gl;
|
||||
|
||||
|
@ -184,7 +184,7 @@ GL4_Draw_GetPicSize(int *w, int *h, char *pic)
|
|||
}
|
||||
|
||||
void
|
||||
GL4_Draw_StretchPic(int x, int y, int w, int h, char *pic)
|
||||
GL4_Draw_StretchPic(int x, int y, int w, int h, const char *pic)
|
||||
{
|
||||
gl4image_t *gl = R_FindPic(pic, (findimage_t)GL4_FindImage);
|
||||
|
||||
|
@ -201,7 +201,7 @@ GL4_Draw_StretchPic(int x, int y, int w, int h, char *pic)
|
|||
}
|
||||
|
||||
void
|
||||
GL4_Draw_PicScaled(int x, int y, char *pic, float factor)
|
||||
GL4_Draw_PicScaled(int x, int y, const char *pic, float factor)
|
||||
{
|
||||
gl4image_t *gl = R_FindPic(pic, (findimage_t)GL4_FindImage);
|
||||
if (!gl)
|
||||
|
@ -222,7 +222,7 @@ GL4_Draw_PicScaled(int x, int y, char *pic, float factor)
|
|||
* refresh window.
|
||||
*/
|
||||
void
|
||||
GL4_Draw_TileClear(int x, int y, int w, int h, char *pic)
|
||||
GL4_Draw_TileClear(int x, int y, int w, int h, const char *pic)
|
||||
{
|
||||
gl4image_t *image = R_FindPic(pic, (findimage_t)GL4_FindImage);
|
||||
if (!image)
|
||||
|
|
|
@ -664,7 +664,7 @@ GL4_FindImage(const char *name, imagetype_t type)
|
|||
}
|
||||
|
||||
gl4image_t *
|
||||
GL4_RegisterSkin(char *name)
|
||||
GL4_RegisterSkin(const char *name)
|
||||
{
|
||||
return GL4_FindImage(name, it_skin);
|
||||
}
|
||||
|
|
|
@ -613,7 +613,7 @@ GL4_Mod_FreeAll(void)
|
|||
* Loads in a model for the given name
|
||||
*/
|
||||
static gl4model_t *
|
||||
Mod_ForName (char *name, gl4model_t *parent_model, qboolean crash)
|
||||
Mod_ForName (const char *name, gl4model_t *parent_model, qboolean crash)
|
||||
{
|
||||
gl4model_t *mod;
|
||||
void *buf;
|
||||
|
@ -745,7 +745,7 @@ Mod_ForName (char *name, gl4model_t *parent_model, qboolean crash)
|
|||
* Specifies the model that will be used as the world
|
||||
*/
|
||||
void
|
||||
GL4_BeginRegistration(char *model)
|
||||
GL4_BeginRegistration(const char *model)
|
||||
{
|
||||
char fullname[MAX_QPATH];
|
||||
cvar_t *flushmap;
|
||||
|
@ -773,7 +773,7 @@ GL4_BeginRegistration(char *model)
|
|||
}
|
||||
|
||||
struct model_s *
|
||||
GL4_RegisterModel(char *name)
|
||||
GL4_RegisterModel(const char *name)
|
||||
{
|
||||
gl4model_t *mod;
|
||||
|
||||
|
|
|
@ -405,8 +405,8 @@ extern void GL4_SetDefaultState(void);
|
|||
extern int registration_sequence;
|
||||
extern void GL4_Mod_Init(void);
|
||||
extern void GL4_Mod_FreeAll(void);
|
||||
extern void GL4_BeginRegistration(char *model);
|
||||
extern struct model_s * GL4_RegisterModel(char *name);
|
||||
extern void GL4_BeginRegistration(const char *model);
|
||||
extern struct model_s * GL4_RegisterModel(const char *name);
|
||||
extern void GL4_EndRegistration(void);
|
||||
extern void GL4_Mod_Modellist_f(void);
|
||||
extern const byte* GL4_Mod_ClusterPVS(int cluster, const gl4model_t *model);
|
||||
|
@ -414,13 +414,13 @@ extern const byte* GL4_Mod_ClusterPVS(int cluster, const gl4model_t *model);
|
|||
// gl4_draw.c
|
||||
extern void GL4_Draw_InitLocal(void);
|
||||
extern void GL4_Draw_ShutdownLocal(void);
|
||||
extern gl4image_t * GL4_Draw_FindPic(char *name);
|
||||
extern void GL4_Draw_GetPicSize(int *w, int *h, char *pic);
|
||||
extern gl4image_t * GL4_Draw_FindPic(const char *name);
|
||||
extern void GL4_Draw_GetPicSize(int *w, int *h, const char *pic);
|
||||
|
||||
extern void GL4_Draw_PicScaled(int x, int y, char *pic, float factor);
|
||||
extern void GL4_Draw_StretchPic(int x, int y, int w, int h, char *pic);
|
||||
extern void GL4_Draw_PicScaled(int x, int y, const char *pic, float factor);
|
||||
extern void GL4_Draw_StretchPic(int x, int y, int w, int h, const char *pic);
|
||||
extern void GL4_Draw_CharScaled(int x, int y, int num, float scale);
|
||||
extern void GL4_Draw_TileClear(int x, int y, int w, int h, char *pic);
|
||||
extern void GL4_Draw_TileClear(int x, int y, int w, int h, const char *pic);
|
||||
extern void GL4_DrawFrameBufferObject(int x, int y, int w, int h, GLuint fboTexture, const float v_blend[4]);
|
||||
extern void GL4_Draw_Fill(int x, int y, int w, int h, int c);
|
||||
extern void GL4_Draw_FadeScreen(void);
|
||||
|
@ -446,7 +446,7 @@ extern gl4image_t *GL4_LoadPic(char *name, byte *pic, int width, int realwidth,
|
|||
int height, int realheight, size_t data_size,
|
||||
imagetype_t type, int bits);
|
||||
extern gl4image_t *GL4_FindImage(const char *name, imagetype_t type);
|
||||
extern gl4image_t *GL4_RegisterSkin(char *name);
|
||||
extern gl4image_t *GL4_RegisterSkin(const char *name);
|
||||
extern void GL4_ShutdownImages(void);
|
||||
extern void GL4_FreeUnusedImages(void);
|
||||
extern qboolean GL4_ImageHasFreeSpace(void);
|
||||
|
|
|
@ -572,18 +572,18 @@ void Draw_InitLocal(void);
|
|||
void R_InitCaches(void);
|
||||
void D_FlushCaches(void);
|
||||
|
||||
void RE_BeginRegistration (char *model);
|
||||
struct model_s *RE_RegisterModel (char *name);
|
||||
void RE_BeginRegistration (const char *model);
|
||||
struct model_s *RE_RegisterModel (const char *name);
|
||||
void RE_EndRegistration (void);
|
||||
|
||||
struct image_s *RE_Draw_FindPic (char *name);
|
||||
struct image_s *RE_Draw_FindPic (const char *name);
|
||||
|
||||
void RE_Draw_GetPicSize (int *w, int *h, char *name);
|
||||
void RE_Draw_PicScaled (int x, int y, char *name, float scale);
|
||||
void RE_Draw_StretchPic (int x, int y, int w, int h, char *name);
|
||||
void RE_Draw_GetPicSize (int *w, int *h, const char *name);
|
||||
void RE_Draw_PicScaled (int x, int y, const char *name, float scale);
|
||||
void RE_Draw_StretchPic (int x, int y, int w, int h, const char *name);
|
||||
void RE_Draw_StretchRaw (int x, int y, int w, int h, int cols, int rows, const byte *data, int bits);
|
||||
void RE_Draw_CharScaled (int x, int y, int c, float scale);
|
||||
void RE_Draw_TileClear (int x, int y, int w, int h, char *name);
|
||||
void RE_Draw_TileClear (int x, int y, int w, int h, const char *name);
|
||||
void RE_Draw_Fill (int x, int y, int w, int h, int c);
|
||||
void RE_Draw_FadeScreen (void);
|
||||
|
||||
|
|
|
@ -33,7 +33,7 @@ RE_Draw_FindPic
|
|||
================
|
||||
*/
|
||||
image_t *
|
||||
RE_Draw_FindPic (char *name)
|
||||
RE_Draw_FindPic (const char *name)
|
||||
{
|
||||
return R_FindPic(name, (findimage_t)R_FindImage);
|
||||
}
|
||||
|
@ -150,7 +150,7 @@ RE_Draw_GetPicSize
|
|||
=============
|
||||
*/
|
||||
void
|
||||
RE_Draw_GetPicSize (int *w, int *h, char *name)
|
||||
RE_Draw_GetPicSize (int *w, int *h, const char *name)
|
||||
{
|
||||
image_t *image;
|
||||
|
||||
|
@ -308,7 +308,7 @@ RE_Draw_StretchPic
|
|||
=============
|
||||
*/
|
||||
void
|
||||
RE_Draw_StretchPic (int x, int y, int w, int h, char *name)
|
||||
RE_Draw_StretchPic (int x, int y, int w, int h, const char *name)
|
||||
{
|
||||
image_t *pic;
|
||||
|
||||
|
@ -386,7 +386,7 @@ Draw_Pic
|
|||
=============
|
||||
*/
|
||||
void
|
||||
RE_Draw_PicScaled(int x, int y, char *name, float scale)
|
||||
RE_Draw_PicScaled(int x, int y, const char *name, float scale)
|
||||
{
|
||||
image_t *pic;
|
||||
|
||||
|
@ -412,7 +412,7 @@ refresh window.
|
|||
=============
|
||||
*/
|
||||
void
|
||||
RE_Draw_TileClear (int x, int y, int w, int h, char *name)
|
||||
RE_Draw_TileClear (int x, int y, int w, int h, const char *name)
|
||||
{
|
||||
int i, j;
|
||||
byte *psrc;
|
||||
|
|
|
@ -1757,7 +1757,7 @@ RE_RegisterSkin
|
|||
===============
|
||||
*/
|
||||
static struct image_s *
|
||||
RE_RegisterSkin (char *name)
|
||||
RE_RegisterSkin (const char *name)
|
||||
{
|
||||
return R_FindImage (name, it_skin);
|
||||
}
|
||||
|
|
|
@ -123,7 +123,7 @@ Loads in a model for the given name
|
|||
==================
|
||||
*/
|
||||
static model_t *
|
||||
Mod_ForName (char *name, model_t *parent_model, qboolean crash)
|
||||
Mod_ForName (const char *name, model_t *parent_model, qboolean crash)
|
||||
{
|
||||
model_t *mod;
|
||||
void *buf;
|
||||
|
@ -704,7 +704,7 @@ Specifies the model that will be used as the world
|
|||
=====================
|
||||
*/
|
||||
void
|
||||
RE_BeginRegistration (char *model)
|
||||
RE_BeginRegistration (const char *model)
|
||||
{
|
||||
char fullname[MAX_QPATH];
|
||||
cvar_t *flushmap;
|
||||
|
@ -731,7 +731,7 @@ RE_RegisterModel
|
|||
=====================
|
||||
*/
|
||||
struct model_s *
|
||||
RE_RegisterModel (char *name)
|
||||
RE_RegisterModel (const char *name)
|
||||
{
|
||||
model_t *mod;
|
||||
|
||||
|
|
|
@ -223,20 +223,20 @@ void R_DrawSkyBox (void);
|
|||
void R_MarkSurfaceLights(dlight_t *light, int bit, mnode_t *node,
|
||||
int r_dlightframecount);
|
||||
|
||||
struct image_s *RE_Draw_FindPic (char *name);
|
||||
struct image_s *RE_Draw_FindPic (const char *name);
|
||||
|
||||
void RE_Draw_GetPicSize (int *w, int *h, char *name);
|
||||
void RE_Draw_PicScaled (int x, int y, char *name, float scale);
|
||||
void RE_Draw_StretchPic (int x, int y, int w, int h, char *name);
|
||||
void RE_Draw_GetPicSize (int *w, int *h, const char *name);
|
||||
void RE_Draw_PicScaled (int x, int y, const char *name, float scale);
|
||||
void RE_Draw_StretchPic (int x, int y, int w, int h, const char *name);
|
||||
void RE_Draw_CharScaled (int x, int y, int num, float scale);
|
||||
void RE_Draw_TileClear (int x, int y, int w, int h, char *name);
|
||||
void RE_Draw_TileClear (int x, int y, int w, int h, const char *name);
|
||||
void RE_Draw_Fill (int x, int y, int w, int h, int c);
|
||||
void RE_Draw_FadeScreen (void);
|
||||
void RE_Draw_StretchRaw (int x, int y, int w, int h, int cols, int rows, const byte *data, int bits);
|
||||
|
||||
qboolean RE_EndWorldRenderpass( void );
|
||||
|
||||
struct image_s *RE_RegisterSkin (char *name);
|
||||
struct image_s *RE_RegisterSkin (const char *name);
|
||||
|
||||
image_t *Vk_LoadPic(const char *name, byte *pic, int width, int realwidth,
|
||||
int height, int realheight, size_t data_size, imagetype_t type,
|
||||
|
@ -256,9 +256,9 @@ void Vk_ShutdownImages (void);
|
|||
void Vk_FreeUnusedImages (void);
|
||||
qboolean Vk_ImageHasFreeSpace(void);
|
||||
|
||||
void RE_BeginRegistration (char *model);
|
||||
struct model_s *RE_RegisterModel (char *name);
|
||||
struct image_s *RE_RegisterSkin (char *name);
|
||||
void RE_BeginRegistration (const char *model);
|
||||
struct model_s *RE_RegisterModel (const char *name);
|
||||
struct image_s *RE_RegisterSkin (const char *name);
|
||||
void RE_SetSky (const char *name, float rotate, int autorotate, const vec3_t axis);
|
||||
void RE_EndRegistration (void);
|
||||
|
||||
|
|
|
@ -90,7 +90,7 @@ void RE_Draw_CharScaled (int x, int y, int num, float scale)
|
|||
RE_Draw_FindPic
|
||||
=============
|
||||
*/
|
||||
image_t *RE_Draw_FindPic (char *name)
|
||||
image_t *RE_Draw_FindPic (const char *name)
|
||||
{
|
||||
return R_FindPic(name, (findimage_t)Vk_FindImage);
|
||||
}
|
||||
|
@ -100,7 +100,7 @@ image_t *RE_Draw_FindPic (char *name)
|
|||
RE_Draw_GetPicSize
|
||||
=============
|
||||
*/
|
||||
void RE_Draw_GetPicSize (int *w, int *h, char *name)
|
||||
void RE_Draw_GetPicSize (int *w, int *h, const char *name)
|
||||
{
|
||||
image_t *image;
|
||||
|
||||
|
@ -120,7 +120,7 @@ void RE_Draw_GetPicSize (int *w, int *h, char *name)
|
|||
RE_Draw_StretchPic
|
||||
=============
|
||||
*/
|
||||
void RE_Draw_StretchPic (int x, int y, int w, int h, char *name)
|
||||
void RE_Draw_StretchPic (int x, int y, int w, int h, const char *name)
|
||||
{
|
||||
image_t *vk;
|
||||
|
||||
|
@ -146,7 +146,7 @@ void RE_Draw_StretchPic (int x, int y, int w, int h, char *name)
|
|||
RE_Draw_PicScaled
|
||||
=============
|
||||
*/
|
||||
void RE_Draw_PicScaled (int x, int y, char *name, float scale)
|
||||
void RE_Draw_PicScaled (int x, int y, const char *name, float scale)
|
||||
{
|
||||
image_t *vk;
|
||||
|
||||
|
@ -168,7 +168,7 @@ This repeats a 64*64 tile graphic to fill the screen around a sized down
|
|||
refresh window.
|
||||
=============
|
||||
*/
|
||||
void RE_Draw_TileClear (int x, int y, int w, int h, char *name)
|
||||
void RE_Draw_TileClear (int x, int y, int w, int h, const char *name)
|
||||
{
|
||||
image_t *image;
|
||||
|
||||
|
|
|
@ -1293,7 +1293,7 @@ Vk_FindImage (const char *name, imagetype_t type)
|
|||
RE_RegisterSkin
|
||||
===============
|
||||
*/
|
||||
struct image_s *RE_RegisterSkin (char *name)
|
||||
struct image_s *RE_RegisterSkin (const char *name)
|
||||
{
|
||||
return Vk_FindImage (name, it_skin);
|
||||
}
|
||||
|
|
|
@ -1196,7 +1196,7 @@ Mod_ForName (const char *name, model_t *parent_model, qboolean crash)
|
|||
* Specifies the model that will be used as the world
|
||||
*/
|
||||
void
|
||||
RE_BeginRegistration (char *model)
|
||||
RE_BeginRegistration (const char *model)
|
||||
{
|
||||
char fullname[MAX_QPATH];
|
||||
cvar_t *flushmap;
|
||||
|
@ -1227,7 +1227,7 @@ RE_BeginRegistration (char *model)
|
|||
}
|
||||
|
||||
struct model_s *
|
||||
RE_RegisterModel(char *name)
|
||||
RE_RegisterModel(const char *name)
|
||||
{
|
||||
model_t *mod;
|
||||
|
||||
|
|
|
@ -178,22 +178,22 @@ typedef struct
|
|||
// are flood filled to eliminate mip map edge errors, and pics have
|
||||
// an implicit "pics/" prepended to the name. (a pic name that starts with a
|
||||
// slash will not use the "pics/" prefix or the ".pcx" postfix)
|
||||
void (EXPORT *BeginRegistration) (char *map);
|
||||
struct model_s * (EXPORT *RegisterModel) (char *name);
|
||||
struct image_s * (EXPORT *RegisterSkin) (char *name);
|
||||
void (EXPORT *BeginRegistration) (const char *map);
|
||||
struct model_s * (EXPORT *RegisterModel) (const char *name);
|
||||
struct image_s * (EXPORT *RegisterSkin) (const char *name);
|
||||
|
||||
void (EXPORT *SetSky) (const char *name, float rotate, int autorotate, const vec3_t axis);
|
||||
void (EXPORT *EndRegistration) (void);
|
||||
|
||||
void (EXPORT *RenderFrame) (refdef_t *fd);
|
||||
|
||||
struct image_s * (EXPORT *DrawFindPic)(char *name);
|
||||
struct image_s * (EXPORT *DrawFindPic)(const char *name);
|
||||
|
||||
void (EXPORT *DrawGetPicSize) (int *w, int *h, char *name); // will return 0 0 if not found
|
||||
void (EXPORT *DrawPicScaled) (int x, int y, char *pic, float factor);
|
||||
void (EXPORT *DrawStretchPic) (int x, int y, int w, int h, char *name);
|
||||
void (EXPORT *DrawGetPicSize) (int *w, int *h, const char *name); // will return 0 0 if not found
|
||||
void (EXPORT *DrawPicScaled) (int x, int y, const char *pic, float factor);
|
||||
void (EXPORT *DrawStretchPic) (int x, int y, int w, int h, const char *name);
|
||||
void (EXPORT *DrawCharScaled)(int x, int y, int num, float scale);
|
||||
void (EXPORT *DrawTileClear) (int x, int y, int w, int h, char *name);
|
||||
void (EXPORT *DrawTileClear) (int x, int y, int w, int h, const char *name);
|
||||
void (EXPORT *DrawFill) (int x, int y, int w, int h, int c);
|
||||
void (EXPORT *DrawFadeScreen) (void);
|
||||
|
||||
|
@ -218,8 +218,8 @@ typedef struct
|
|||
{
|
||||
YQ2_ATTR_NORETURN_FUNCPTR void (IMPORT *Sys_Error) (int err_level, const char *str, ...) PRINTF_ATTR(2, 3);
|
||||
|
||||
void (IMPORT *Cmd_AddCommand) (char *name, void(*cmd)(void));
|
||||
void (IMPORT *Cmd_RemoveCommand) (char *name);
|
||||
void (IMPORT *Cmd_AddCommand) (const char *name, void(*cmd)(void));
|
||||
void (IMPORT *Cmd_RemoveCommand) (const char *name);
|
||||
int (IMPORT *Cmd_Argc) (void);
|
||||
char *(IMPORT *Cmd_Argv) (int i);
|
||||
void (IMPORT *Cmd_ExecuteText) (int exec_when, char *text);
|
||||
|
@ -231,15 +231,15 @@ typedef struct
|
|||
// or a discrete file from anywhere in the quake search path
|
||||
// a -1 return means the file does not exist
|
||||
// NULL can be passed for buf to just determine existance
|
||||
int (IMPORT *FS_LoadFile) (char *name, void **buf);
|
||||
int (IMPORT *FS_LoadFile) (const char *name, void **buf);
|
||||
void (IMPORT *FS_FreeFile) (void *buf);
|
||||
|
||||
// gamedir will be the current directory that generated
|
||||
// files should be stored to, ie: "f:\quake\id1"
|
||||
char *(IMPORT *FS_Gamedir) (void);
|
||||
|
||||
cvar_t *(IMPORT *Cvar_Get) (const char *name, char *value, int flags);
|
||||
cvar_t *(IMPORT *Cvar_Set) (const char *name, char *value);
|
||||
cvar_t *(IMPORT *Cvar_Get) (const char *name, const char *value, int flags);
|
||||
cvar_t *(IMPORT *Cvar_Set) (const char *name, const char *value);
|
||||
void (IMPORT *Cvar_SetValue) (const char *name, float value);
|
||||
|
||||
qboolean (IMPORT *Vid_GetModeInfo)(int *width, int *height, int mode);
|
||||
|
@ -264,21 +264,21 @@ extern refimport_t ri;
|
|||
/*
|
||||
* Refresh API
|
||||
*/
|
||||
void R_BeginRegistration(char *map);
|
||||
void R_BeginRegistration(const char *map);
|
||||
void R_Clear(void);
|
||||
struct model_s *R_RegisterModel(char *name);
|
||||
struct image_s *R_RegisterSkin(char *name);
|
||||
struct model_s *R_RegisterModel(const char *name);
|
||||
struct image_s *R_RegisterSkin(const char *name);
|
||||
void R_SetSky(const char *name, float rotate, int autorotate, const vec3_t axis);
|
||||
void R_EndRegistration(void);
|
||||
struct image_s *Draw_FindPic(char *name);
|
||||
struct image_s *Draw_FindPic(const char *name);
|
||||
void R_RenderFrame(refdef_t *fd);
|
||||
void Draw_GetPicSize(int *w, int *h, char *name);
|
||||
void Draw_GetPicSize(int *w, int *h, const char *name);
|
||||
|
||||
void Draw_StretchPic(int x, int y, int w, int h, char *name);
|
||||
void Draw_PicScaled(int x, int y, char *pic, float factor);
|
||||
void Draw_StretchPic(int x, int y, int w, int h, const char *name);
|
||||
void Draw_PicScaled(int x, int y, const char *pic, float factor);
|
||||
|
||||
void Draw_CharScaled(int x, int y, int num, float scale);
|
||||
void Draw_TileClear(int x, int y, int w, int h, char *name);
|
||||
void Draw_TileClear(int x, int y, int w, int h, const char *name);
|
||||
void Draw_Fill(int x, int y, int w, int h, int c);
|
||||
void Draw_FadeScreen(void);
|
||||
void Draw_StretchRaw(int x, int y, int w, int h, int cols, int rows, const byte *data, int bits);
|
||||
|
|
|
@ -602,7 +602,7 @@ VID_Shutdown(void)
|
|||
// =========================================================
|
||||
|
||||
void
|
||||
R_BeginRegistration(char *map)
|
||||
R_BeginRegistration(const char *map)
|
||||
{
|
||||
if (ref_active)
|
||||
{
|
||||
|
@ -611,7 +611,7 @@ R_BeginRegistration(char *map)
|
|||
}
|
||||
|
||||
struct model_s*
|
||||
R_RegisterModel(char *name)
|
||||
R_RegisterModel(const char *name)
|
||||
{
|
||||
if (ref_active)
|
||||
{
|
||||
|
@ -622,7 +622,7 @@ R_RegisterModel(char *name)
|
|||
}
|
||||
|
||||
struct image_s*
|
||||
R_RegisterSkin(char *name)
|
||||
R_RegisterSkin(const char *name)
|
||||
{
|
||||
if (ref_active)
|
||||
{
|
||||
|
@ -660,7 +660,7 @@ R_RenderFrame(refdef_t *fd)
|
|||
}
|
||||
|
||||
struct image_s*
|
||||
Draw_FindPic(char *name)
|
||||
Draw_FindPic(const char *name)
|
||||
{
|
||||
if (ref_active)
|
||||
{
|
||||
|
@ -672,7 +672,7 @@ Draw_FindPic(char *name)
|
|||
|
||||
|
||||
void
|
||||
Draw_GetPicSize(int *w, int *h, char *name)
|
||||
Draw_GetPicSize(int *w, int *h, const char *name)
|
||||
{
|
||||
if (ref_active)
|
||||
{
|
||||
|
@ -681,7 +681,7 @@ Draw_GetPicSize(int *w, int *h, char *name)
|
|||
}
|
||||
|
||||
void
|
||||
Draw_StretchPic(int x, int y, int w, int h, char *name)
|
||||
Draw_StretchPic(int x, int y, int w, int h, const char *name)
|
||||
{
|
||||
if (ref_active)
|
||||
{
|
||||
|
@ -690,7 +690,7 @@ Draw_StretchPic(int x, int y, int w, int h, char *name)
|
|||
}
|
||||
|
||||
void
|
||||
Draw_PicScaled(int x, int y, char *pic, float factor)
|
||||
Draw_PicScaled(int x, int y, const char *pic, float factor)
|
||||
{
|
||||
if (ref_active)
|
||||
{
|
||||
|
@ -708,7 +708,7 @@ Draw_CharScaled(int x, int y, int num, float scale)
|
|||
}
|
||||
|
||||
void
|
||||
Draw_TileClear(int x, int y, int w, int h, char *name)
|
||||
Draw_TileClear(int x, int y, int w, int h, const char *name)
|
||||
{
|
||||
if (ref_active)
|
||||
{
|
||||
|
|
|
@ -36,7 +36,7 @@
|
|||
typedef struct cmd_function_s
|
||||
{
|
||||
struct cmd_function_s *next;
|
||||
char *name;
|
||||
const char *name;
|
||||
xcommand_t function;
|
||||
} cmd_function_t;
|
||||
|
||||
|
@ -700,7 +700,7 @@ Cmd_TokenizeString(char *text, qboolean macroExpand)
|
|||
}
|
||||
|
||||
void
|
||||
Cmd_AddCommand(char *cmd_name, xcommand_t function)
|
||||
Cmd_AddCommand(const char *cmd_name, xcommand_t function)
|
||||
{
|
||||
cmd_function_t *cmd;
|
||||
cmd_function_t **pos;
|
||||
|
@ -736,7 +736,7 @@ Cmd_AddCommand(char *cmd_name, xcommand_t function)
|
|||
}
|
||||
|
||||
void
|
||||
Cmd_RemoveCommand(char *cmd_name)
|
||||
Cmd_RemoveCommand(const char *cmd_name)
|
||||
{
|
||||
cmd_function_t *cmd, **back;
|
||||
|
||||
|
@ -779,14 +779,14 @@ Cmd_Exists(char *cmd_name)
|
|||
return false;
|
||||
}
|
||||
|
||||
char *
|
||||
Cmd_CompleteCommand(char *partial)
|
||||
const char *
|
||||
Cmd_CompleteCommand(const char *partial)
|
||||
{
|
||||
cmd_function_t *cmd;
|
||||
int len, i, o, p;
|
||||
cmdalias_t *a;
|
||||
cvar_t *cvar;
|
||||
char *pmatch[1024];
|
||||
const char *pmatch[1024];
|
||||
qboolean diff = false;
|
||||
|
||||
len = strlen(partial);
|
||||
|
@ -903,8 +903,8 @@ Cmd_CompleteCommand(char *partial)
|
|||
return NULL;
|
||||
}
|
||||
|
||||
char *
|
||||
Cmd_CompleteMapCommand(char *partial)
|
||||
const char *
|
||||
Cmd_CompleteMapCommand(const char *partial)
|
||||
{
|
||||
char **mapNames;
|
||||
int i, j, k, nbMatches, len, nMaps;
|
||||
|
@ -987,7 +987,7 @@ Cmd_CompleteMapCommand(char *partial)
|
|||
}
|
||||
|
||||
qboolean
|
||||
Cmd_IsComplete(char *command)
|
||||
Cmd_IsComplete(const char *command)
|
||||
{
|
||||
cmd_function_t *cmd;
|
||||
cmdalias_t *a;
|
||||
|
|
|
@ -212,7 +212,7 @@ Cvar_VariableString(const char *var_name)
|
|||
* The flags will be or'ed in if the variable exists.
|
||||
*/
|
||||
cvar_t *
|
||||
Cvar_Get(const char *var_name, char *var_value, int flags)
|
||||
Cvar_Get(const char *var_name, const char *var_value, int flags)
|
||||
{
|
||||
cvar_t *var;
|
||||
cvar_t **pos;
|
||||
|
@ -290,7 +290,7 @@ Cvar_Get(const char *var_name, char *var_value, int flags)
|
|||
}
|
||||
|
||||
cvar_t *
|
||||
Cvar_Set2(const char *var_name, char *value, qboolean force)
|
||||
Cvar_Set2(const char *var_name, const char *value, qboolean force)
|
||||
{
|
||||
cvar_t *var;
|
||||
|
||||
|
@ -394,19 +394,19 @@ Cvar_Set2(const char *var_name, char *value, qboolean force)
|
|||
}
|
||||
|
||||
cvar_t *
|
||||
Cvar_ForceSet(const char *var_name, char *value)
|
||||
Cvar_ForceSet(const char *var_name, const char *value)
|
||||
{
|
||||
return Cvar_Set2(var_name, value, true);
|
||||
}
|
||||
|
||||
cvar_t *
|
||||
Cvar_Set(const char *var_name, char *value)
|
||||
Cvar_Set(const char *var_name, const char *value)
|
||||
{
|
||||
return Cvar_Set2(var_name, value, false);
|
||||
}
|
||||
|
||||
cvar_t *
|
||||
Cvar_FullSet(const char *var_name, char *value, int flags)
|
||||
Cvar_FullSet(const char *var_name, const char *value, int flags)
|
||||
{
|
||||
cvar_t *var;
|
||||
|
||||
|
|
|
@ -696,7 +696,7 @@ FS_FRead(void *buffer, int size, int count, fileHandle_t f)
|
|||
* return the file length without loading.
|
||||
*/
|
||||
int
|
||||
FS_LoadFile(char *path, void **buffer)
|
||||
FS_LoadFile(const char *path, void **buffer)
|
||||
{
|
||||
byte *buf; /* Buffer. */
|
||||
int size; /* File size. */
|
||||
|
@ -949,7 +949,7 @@ FS_LoadPK3(const char *packPath)
|
|||
* Allows enumerating all of the directories in the search path.
|
||||
*/
|
||||
char *
|
||||
FS_NextPath(char *prevPath)
|
||||
FS_NextPath(const char *prevPath)
|
||||
{
|
||||
char *prev;
|
||||
fsSearchPath_t *search;
|
||||
|
@ -1084,7 +1084,7 @@ FS_Link_f(void)
|
|||
* Create a list of files that match a criteria.
|
||||
*/
|
||||
char **
|
||||
FS_ListFiles(char *findname, int *numfiles,
|
||||
FS_ListFiles(const char *findname, int *numfiles,
|
||||
unsigned musthave, unsigned canthave)
|
||||
{
|
||||
char **list; /* List of files. */
|
||||
|
@ -1211,7 +1211,7 @@ ComparePackFiles(const char *findname, const char *name, unsigned musthave,
|
|||
* including .pak and .pk3 files.
|
||||
*/
|
||||
char **
|
||||
FS_ListFiles2(char *findname, int *numfiles,
|
||||
FS_ListFiles2(const char *findname, int *numfiles,
|
||||
unsigned musthave, unsigned canthave)
|
||||
{
|
||||
fsSearchPath_t *search; /* Search path. */
|
||||
|
@ -1868,7 +1868,7 @@ void CL_WriteConfiguration(void);
|
|||
#endif
|
||||
|
||||
void
|
||||
FS_BuildGameSpecificSearchPath(char *dir)
|
||||
FS_BuildGameSpecificSearchPath(const char *dir)
|
||||
{
|
||||
// We may not use the va() function from shared.c
|
||||
// since it's buffersize is 1024 while most OS have
|
||||
|
|
|
@ -387,22 +387,22 @@ typedef void (*xcommand_t)(void);
|
|||
void Cmd_Init(void);
|
||||
void Cmd_Shutdown(void);
|
||||
|
||||
void Cmd_AddCommand(char *cmd_name, xcommand_t function);
|
||||
void Cmd_AddCommand(const char *cmd_name, xcommand_t function);
|
||||
|
||||
/* called by the init functions of other parts of the program to */
|
||||
/* register commands and functions to call for them. */
|
||||
/* The cmd_name is referenced later, so it should not be in temp memory */
|
||||
/* if function is NULL, the command will be forwarded to the server */
|
||||
/* as a clc_stringcmd instead of executed locally */
|
||||
void Cmd_RemoveCommand(char *cmd_name);
|
||||
void Cmd_RemoveCommand(const char *cmd_name);
|
||||
|
||||
qboolean Cmd_Exists(char *cmd_name);
|
||||
|
||||
/* used by the cvar code to check for cvar / command name overlap */
|
||||
|
||||
char *Cmd_CompleteCommand(char *partial);
|
||||
const char *Cmd_CompleteCommand(const char *partial);
|
||||
|
||||
char *Cmd_CompleteMapCommand(char *partial);
|
||||
const char *Cmd_CompleteMapCommand(const char *partial);
|
||||
|
||||
/* attempts to match a partial command for automatic command line completion */
|
||||
/* returns NULL if nothing fits */
|
||||
|
@ -448,21 +448,21 @@ void Cmd_ForwardToServer(void);
|
|||
|
||||
extern cvar_t *cvar_vars;
|
||||
|
||||
cvar_t *Cvar_Get(const char *var_name, char *value, int flags);
|
||||
cvar_t *Cvar_Get(const char *var_name, const char *value, int flags);
|
||||
|
||||
/* creates the variable if it doesn't exist, or returns the existing one */
|
||||
/* if it exists, the value will not be changed, but flags will be ORed in */
|
||||
/* that allows variables to be unarchived without needing bitflags */
|
||||
|
||||
cvar_t *Cvar_Set(const char *var_name, char *value);
|
||||
cvar_t *Cvar_Set(const char *var_name, const char *value);
|
||||
|
||||
/* will create the variable if it doesn't exist */
|
||||
|
||||
cvar_t *Cvar_ForceSet(const char *var_name, char *value);
|
||||
cvar_t *Cvar_ForceSet(const char *var_name, const char *value);
|
||||
|
||||
/* will set the variable even if NOSET or LATCH */
|
||||
|
||||
cvar_t *Cvar_FullSet(const char *var_name, char *value, int flags);
|
||||
cvar_t *Cvar_FullSet(const char *var_name, const char *value, int flags);
|
||||
|
||||
void Cvar_SetValue(const char *var_name, float value);
|
||||
|
||||
|
@ -701,18 +701,18 @@ int FS_FRead(void *buffer, int size, int count, fileHandle_t f);
|
|||
// returns NULL if f is no valid handle
|
||||
const char* FS_GetFilenameForHandle(fileHandle_t f);
|
||||
|
||||
char **FS_ListFiles(char *findname, int *numfiles,
|
||||
char **FS_ListFiles(const char *findname, int *numfiles,
|
||||
unsigned musthave, unsigned canthave);
|
||||
char **FS_ListFiles2(char *findname, int *numfiles,
|
||||
char **FS_ListFiles2(const char *findname, int *numfiles,
|
||||
unsigned musthave, unsigned canthave);
|
||||
void FS_FreeList(char **list, int nfiles);
|
||||
|
||||
void FS_InitFilesystem(void);
|
||||
void FS_ShutdownFilesystem(void);
|
||||
void FS_BuildGameSpecificSearchPath(char *dir);
|
||||
void FS_BuildGameSpecificSearchPath(const char *dir);
|
||||
char *FS_Gamedir(void);
|
||||
char *FS_NextPath(char *prevpath);
|
||||
int FS_LoadFile(char *path, void **buffer);
|
||||
char *FS_NextPath(const char *prevpath);
|
||||
int FS_LoadFile(const char *path, void **buffer);
|
||||
qboolean FS_FileInGamedir(const char *file);
|
||||
qboolean FS_AddPAKFromGamedir(const char *pak);
|
||||
const char* FS_GetNextRawPath(const char* lastRawPath);
|
||||
|
|
|
@ -322,8 +322,8 @@ void Com_PageInMemory(byte *buffer, int size);
|
|||
|
||||
/* portable case insensitive compare */
|
||||
int Q_stricmp(const char *s1, const char *s2);
|
||||
int Q_strcasecmp(char *s1, char *s2);
|
||||
int Q_strncasecmp(char *s1, char *s2, int n);
|
||||
int Q_strcasecmp(const char *s1, const char *s2);
|
||||
int Q_strncasecmp(const char *s1, const char *s2, int n);
|
||||
|
||||
/* portable string lowercase */
|
||||
char *Q_strlwr(char *s);
|
||||
|
@ -404,7 +404,7 @@ int Hunk_End(void);
|
|||
#define SFF_SYSTEM 0x10
|
||||
|
||||
/* pass in an attribute mask of things you wish to REJECT */
|
||||
char *Sys_FindFirst(char *path, unsigned musthave, unsigned canthave);
|
||||
char *Sys_FindFirst(const char *path, unsigned musthave, unsigned canthave);
|
||||
char *Sys_FindNext(unsigned musthave, unsigned canthave);
|
||||
void Sys_FindClose(void);
|
||||
|
||||
|
|
|
@ -1031,7 +1031,7 @@ Q_stricmp(const char *s1, const char *s2)
|
|||
}
|
||||
|
||||
int
|
||||
Q_strncasecmp(char *s1, char *s2, int n)
|
||||
Q_strncasecmp(const char *s1, const char *s2, int n)
|
||||
{
|
||||
int c1, c2;
|
||||
|
||||
|
@ -1069,7 +1069,7 @@ Q_strncasecmp(char *s1, char *s2, int n)
|
|||
}
|
||||
|
||||
int
|
||||
Q_strcasecmp(char *s1, char *s2)
|
||||
Q_strcasecmp(const char *s1, const char *s2)
|
||||
{
|
||||
return Q_strncasecmp(s1, s2, 99999);
|
||||
}
|
||||
|
|
|
@ -167,9 +167,9 @@ typedef struct
|
|||
void (*FreeTags)(int tag);
|
||||
|
||||
/* console variable interaction */
|
||||
cvar_t *(*cvar)(const char *var_name, char *value, int flags);
|
||||
cvar_t *(*cvar_set)(const char *var_name, char *value);
|
||||
cvar_t *(*cvar_forceset)(const char *var_name, char *value);
|
||||
cvar_t *(*cvar)(const char *var_name, const char *value, int flags);
|
||||
cvar_t *(*cvar_set)(const char *var_name, const char *value);
|
||||
cvar_t *(*cvar_forceset)(const char *var_name, const char *value);
|
||||
|
||||
/* ClientCommand and ServerCommand parameter access */
|
||||
int (*argc)(void);
|
||||
|
|
|
@ -51,8 +51,8 @@ extern int Q_strlcat ( char * dst , const char * src , int size ) ;
|
|||
extern int Q_strlcpy ( char * dst , const char * src , int size ) ;
|
||||
extern char * Q_strlwr ( char * s ) ;
|
||||
extern void Com_sprintf ( char * dest , int size , char * fmt , ... ) ;
|
||||
extern int Q_strcasecmp ( char * s1 , char * s2 ) ;
|
||||
extern int Q_strncasecmp ( char * s1 , char * s2 , int n ) ;
|
||||
extern int Q_strcasecmp ( const char * s1 , const char * s2 ) ;
|
||||
extern int Q_strncasecmp ( const char * s1 , const char * s2 , int n ) ;
|
||||
extern int Q_stricmp ( const char * s1 , const char * s2 ) ;
|
||||
extern void Com_PageInMemory ( byte * buffer , int size ) ;
|
||||
extern char * COM_Parse ( char * * data_p ) ;
|
||||
|
|
Loading…
Reference in a new issue