(svn r1077) Implements scripts/autoexec.scr to get executed on game starting (sign_de)
- %! allows to merge alias parameters - \% allows to use % in alias strings - "alias" command now overwrites the old alias list entry
This commit is contained in:
@@ -367,8 +367,17 @@ DEF_CONSOLE_CMD(ConPrintFC)
|
||||
|
||||
DEF_CONSOLE_CMD(ConAlias)
|
||||
{
|
||||
_iconsole_alias* alias;
|
||||
|
||||
if (argc < 3) return NULL;
|
||||
IConsoleAliasRegister(argv[1],argv[2]);
|
||||
|
||||
alias = IConsoleAliasGet(argv[1]);
|
||||
if (alias == NULL) {
|
||||
IConsoleAliasRegister(argv[1],argv[2]);
|
||||
} else {
|
||||
free(alias->cmdline);
|
||||
alias->cmdline = strdup(argv[2]);
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user