mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-13 07:58:04 +00:00
git-svn-id: https://svn.eduke32.com/eduke32@814 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
ef183706e6
commit
b60e2a57dc
3 changed files with 12 additions and 1 deletions
|
@ -1140,6 +1140,12 @@ int OSD_Dispatch(const char *cmd)
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (wp[0] == '/' && wp[1] == '/') // cheap hack
|
||||||
|
{
|
||||||
|
free(workbuf);
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
symb = findexactsymbol(wp);
|
symb = findexactsymbol(wp);
|
||||||
if (!symb)
|
if (!symb)
|
||||||
{
|
{
|
||||||
|
|
|
@ -7814,10 +7814,13 @@ int load_script(const char *szScript)
|
||||||
if (fp != NULL)
|
if (fp != NULL)
|
||||||
{
|
{
|
||||||
char line[255];
|
char line[255];
|
||||||
|
extern int cmdfromscript;
|
||||||
|
|
||||||
OSD_Printf("Executing \"%s\"\n", szScript);
|
OSD_Printf("Executing \"%s\"\n", szScript);
|
||||||
|
cmdfromscript = 1;
|
||||||
while (fgets(line ,sizeof(line)-1, fp) != NULL)
|
while (fgets(line ,sizeof(line)-1, fp) != NULL)
|
||||||
OSD_Dispatch(strtok(line,"\r\n"));
|
OSD_Dispatch(strtok(line,"\r\n"));
|
||||||
|
cmdfromscript = 0;
|
||||||
fclose(fp);
|
fclose(fp);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -32,6 +32,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
|
|
||||||
extern int voting;
|
extern int voting;
|
||||||
struct osdcmd_cheatsinfo osdcmd_cheatsinfo_stat;
|
struct osdcmd_cheatsinfo osdcmd_cheatsinfo_stat;
|
||||||
|
int cmdfromscript = 0;
|
||||||
|
|
||||||
static inline int osdcmd_quit(const osdfuncparm_t *parm)
|
static inline int osdcmd_quit(const osdfuncparm_t *parm)
|
||||||
{
|
{
|
||||||
|
@ -999,7 +1000,8 @@ static int osdcmd_bind(const osdfuncparm_t *parm)
|
||||||
else boundkeys[keynames[i].id].repeat = 1;
|
else boundkeys[keynames[i].id].repeat = 1;
|
||||||
Bstrncpy(boundkeys[keynames[i].id].name,parm->parms[j], MAXBINDSTRINGLENGTH-1);
|
Bstrncpy(boundkeys[keynames[i].id].name,parm->parms[j], MAXBINDSTRINGLENGTH-1);
|
||||||
boundkeys[keynames[i].id].key=keynames[i].name;
|
boundkeys[keynames[i].id].key=keynames[i].name;
|
||||||
OSD_Printf("%s\n",parm->raw);
|
if (!cmdfromscript)
|
||||||
|
OSD_Printf("%s\n",parm->raw);
|
||||||
return OSDCMD_OK;
|
return OSDCMD_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue