Quake3 cgame stuff should run a little bit longer now (depending on the mod...).

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2108 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2006-03-14 01:16:44 +00:00
parent 629834c8a6
commit 66b5d2a468
1 changed files with 15 additions and 1 deletions

View File

@ -27,6 +27,9 @@ void GLDraw_ShaderImage (int x, int y, int w, int h, float s1, float t1, float s
#define CGTAGNUM 5423 #define CGTAGNUM 5423
#define VM_FROMHANDLE(a) ((void*)a)
#define VM_TOHANDLE(a) ((int)a)
typedef enum { typedef enum {
CG_PRINT, CG_PRINT,
CG_ERROR, CG_ERROR,
@ -845,8 +848,11 @@ static long CG_SystemCallsEx(void *offset, unsigned int mask, int fn, const long
case CG_S_ADDLOOPINGSOUND: case CG_S_ADDLOOPINGSOUND:
break; break;
case CG_S_STOPLOOPINGSOUND:
break;
case CG_S_STARTBACKGROUNDTRACK: case CG_S_STARTBACKGROUNDTRACK:
case CG_S_STOPBACKGROUNDTRACK:
case CG_S_CLEARLOOPINGSOUNDS: case CG_S_CLEARLOOPINGSOUNDS:
break; break;
@ -868,6 +874,14 @@ static long CG_SystemCallsEx(void *offset, unsigned int mask, int fn, const long
} }
break; break;
case CG_KEY_GETKEY:
{
int ret[2];
M_FindKeysForCommand (VM_POINTER(arg[0]), ret);
return ret[0];
}
break;
case CG_KEY_GETCATCHER: case CG_KEY_GETCATCHER:
VM_LONG(ret) = keycatcher; VM_LONG(ret) = keycatcher;
break; break;
@ -1001,7 +1015,7 @@ static long CG_SystemCallsEx(void *offset, unsigned int mask, int fn, const long
UI_RegisterFont(VM_POINTER(arg[0]), VM_LONG(arg[1]), VM_POINTER(arg[2])); UI_RegisterFont(VM_POINTER(arg[0]), VM_LONG(arg[1]), VM_POINTER(arg[2]));
break; break;
default: default:
Host_EndGame("Q3CG: Bad system trap: %d\n", fn); Con_Printf("Q3CG: Bad system trap: %d\n", fn);
} }
return ret; return ret;