mirror of
https://github.com/rehlds/rehlds.git
synced 2025-01-17 00:58:18 +03:00
Added more constraints to cmd functions
This commit is contained in:
parent
c2de84abf5
commit
0a62dab196
@ -57,7 +57,7 @@ void Cbuf_Init(void)
|
||||
|
||||
// As new commands are generated from the console or keybindings,
|
||||
// the text is added to the end of the command buffer.
|
||||
void Cbuf_AddText(char *text)
|
||||
void Cbuf_AddText(const char *text)
|
||||
{
|
||||
int len = Q_strlen(text);
|
||||
|
||||
@ -73,7 +73,7 @@ void Cbuf_AddText(char *text)
|
||||
// When a command wants to issue other commands immediately, the text is
|
||||
// inserted at the beginning of the buffer, before any remaining unexecuted
|
||||
// commands.
|
||||
void Cbuf_InsertText(char *text)
|
||||
void Cbuf_InsertText(const char *text)
|
||||
{
|
||||
|
||||
int addLen = Q_strlen(text);
|
||||
@ -112,7 +112,7 @@ void Cbuf_InsertText(char *text)
|
||||
#endif // REHLDS_FIXES
|
||||
}
|
||||
|
||||
void Cbuf_InsertTextLines(char *text)
|
||||
void Cbuf_InsertTextLines(const char *text)
|
||||
{
|
||||
int addLen = Q_strlen(text);
|
||||
int currLen = cmd_text.cursize;
|
||||
@ -862,7 +862,7 @@ qboolean Cmd_Exists(const char *cmd_name)
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
NOXREF const char *Cmd_CompleteCommand(char *search, int forward)
|
||||
NOXREF const char *Cmd_CompleteCommand(const char *search, int forward)
|
||||
{
|
||||
NOXREFCHECK;
|
||||
|
||||
@ -1057,7 +1057,7 @@ qboolean Cmd_ForwardToServerUnreliable(void)
|
||||
|
||||
// Returns the position (1 to argc-1) in the command's argument list
|
||||
// where the given parameter apears, or 0 if not present.
|
||||
NOXREF int Cmd_CheckParm(char *parm)
|
||||
NOXREF int Cmd_CheckParm(const char *parm)
|
||||
{
|
||||
NOXREFCHECK;
|
||||
|
||||
|
@ -86,9 +86,9 @@ extern cmdalias_t *cmd_alias;
|
||||
|
||||
void Cmd_Wait_f(void);
|
||||
void Cbuf_Init(void);
|
||||
void Cbuf_AddText(char *text);
|
||||
void Cbuf_InsertText(char *text);
|
||||
void Cbuf_InsertTextLines(char *text);
|
||||
void Cbuf_AddText(const char *text);
|
||||
void Cbuf_InsertText(const char *text);
|
||||
void Cbuf_InsertTextLines(const char *text);
|
||||
void Cbuf_Execute(void);
|
||||
void Cmd_StuffCmds_f(void);
|
||||
void Cmd_Exec_f(void);
|
||||
@ -115,10 +115,10 @@ NOXREF void Cmd_RemoveHudCmds(void);
|
||||
void Cmd_RemoveGameCmds(void);
|
||||
void Cmd_RemoveWrapperCmds(void);
|
||||
qboolean Cmd_Exists(const char *cmd_name);
|
||||
NOXREF const char *Cmd_CompleteCommand(char *search, int forward);
|
||||
NOXREF const char *Cmd_CompleteCommand(const char *search, int forward);
|
||||
void Cmd_ExecuteString(char *text, cmd_source_t src);
|
||||
qboolean Cmd_ForwardToServerInternal(sizebuf_t *pBuf);
|
||||
void Cmd_ForwardToServer(void);
|
||||
qboolean Cmd_ForwardToServerUnreliable(void);
|
||||
NOXREF int Cmd_CheckParm(char *parm);
|
||||
NOXREF int Cmd_CheckParm(const char *parm);
|
||||
void Cmd_CmdList_f(void);
|
||||
|
Loading…
x
Reference in New Issue
Block a user