mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-24 10:40:46 +00:00
git-svn-id: https://svn.eduke32.com/eduke32@823 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
ef2683418e
commit
88120b45eb
2 changed files with 9 additions and 2 deletions
|
@ -832,8 +832,9 @@ void CONFIG_WriteBinds(void) // save binds and aliases to disk
|
|||
{
|
||||
symbol_t *symb;
|
||||
fprintf(fp,"// this file automatically generated by EDuke32\n// do not modify if you lack common sense\n");
|
||||
for (i=0;i<MAXBOUNDKEYS;i++)if (*boundkeys[i].name)
|
||||
fprintf(fp,"bind %s%s \"%s\"\n",boundkeys[i].key,boundkeys[i].repeat?"":" norepeat",boundkeys[i].name);
|
||||
for (i=0;i<MAXBOUNDKEYS;i++)
|
||||
if (boundkeys[i].key && *boundkeys[i].name)
|
||||
fprintf(fp,"bind %s%s \"%s\"\n",boundkeys[i].key,boundkeys[i].repeat?"":" norepeat",boundkeys[i].name);
|
||||
|
||||
for (symb=symbols; symb!=NULL; symb=symb->next)
|
||||
if (symb->func == (void *)OSD_ALIAS)
|
||||
|
|
|
@ -4289,6 +4289,12 @@ repeatcase:
|
|||
gamefunctions[j][i] = *textptr;
|
||||
keydefaults[j*3][i] = *textptr;
|
||||
textptr++,i++;
|
||||
if (*textptr == '/')
|
||||
{
|
||||
initprintf("%s:%d: warning: invalid character in function name.\n",compilefile,line_number);
|
||||
while (*textptr != 0x0a && *textptr != 0x0d && *textptr != 0) textptr++;
|
||||
break;
|
||||
}
|
||||
if (i >= MAXGAMEFUNCLEN-1)
|
||||
{
|
||||
initprintf("%s:%d: error: function name exceeds limit of %d characters.\n",compilefile,line_number,MAXGAMEFUNCLEN);
|
||||
|
|
Loading…
Reference in a new issue