#include "ui_local.h"
Include dependency graph for ui_syscalls.c:

Go to the source code of this file.
Functions | |
| void | dllEntry (int(QDECL *syscallptr)(int arg,...)) |
| int (QDECL *syscall)(int arg | |
| int | PASSFLOAT (float x) |
| int | trap_Argc (void) |
| void | trap_Argv (int n, char *buffer, int bufferLength) |
| void | trap_CIN_DrawCinematic (int handle) |
| int | trap_CIN_PlayCinematic (const char *arg0, int xpos, int ypos, int width, int height, int bits) |
| e_status | trap_CIN_RunCinematic (int handle) |
| void | trap_CIN_SetExtents (int handle, int x, int y, int w, int h) |
| e_status | trap_CIN_StopCinematic (int handle) |
| int | trap_CM_LerpTag (orientation_t *tag, clipHandle_t mod, int startFrame, int endFrame, float frac, const char *tagName) |
| void | trap_Cmd_ExecuteText (int exec_when, const char *text) |
| void | trap_Cvar_Create (const char *var_name, const char *var_value, int flags) |
| void | trap_Cvar_InfoStringBuffer (int bit, char *buffer, int bufsize) |
| void | trap_Cvar_Register (vmCvar_t *cvar, const char *var_name, const char *value, int flags) |
| void | trap_Cvar_Reset (const char *name) |
| void | trap_Cvar_Set (const char *var_name, const char *value) |
| void | trap_Cvar_SetValue (const char *var_name, float value) |
| void | trap_Cvar_Update (vmCvar_t *cvar) |
| void | trap_Cvar_VariableStringBuffer (const char *var_name, char *buffer, int bufsize) |
| float | trap_Cvar_VariableValue (const char *var_name) |
| void | trap_Error (const char *string) |
| void | trap_FS_FCloseFile (fileHandle_t f) |
| int | trap_FS_FOpenFile (const char *qpath, fileHandle_t *f, fsMode_t mode) |
| int | trap_FS_GetFileList (const char *path, const char *extension, char *listbuf, int bufsize) |
| void | trap_FS_Read (void *buffer, int len, fileHandle_t f) |
| int | trap_FS_Seek (fileHandle_t f, long offset, int origin) |
| void | trap_FS_Write (const void *buffer, int len, fileHandle_t f) |
| void | trap_GetCDKey (char *buf, int buflen) |
| void | trap_GetClientState (uiClientState_t *state) |
| void | trap_GetClipboardData (char *buf, int bufsize) |
| int | trap_GetConfigString (int index, char *buff, int buffsize) |
| void | trap_GetGlconfig (glconfig_t *glconfig) |
| void | trap_Key_ClearStates (void) |
| void | trap_Key_GetBindingBuf (int keynum, char *buf, int buflen) |
| int | trap_Key_GetCatcher (void) |
| qboolean | trap_Key_GetOverstrikeMode (void) |
| qboolean | trap_Key_IsDown (int keynum) |
| void | trap_Key_KeynumToStringBuf (int keynum, char *buf, int buflen) |
| void | trap_Key_SetBinding (int keynum, const char *binding) |
| void | trap_Key_SetCatcher (int catcher) |
| void | trap_Key_SetOverstrikeMode (qboolean state) |
| int | trap_LAN_AddServer (int source, const char *name, const char *addr) |
| void | trap_LAN_ClearPing (int n) |
| int | trap_LAN_CompareServers (int source, int sortKey, int sortDir, int s1, int s2) |
| void | trap_LAN_GetPing (int n, char *buf, int buflen, int *pingtime) |
| void | trap_LAN_GetPingInfo (int n, char *buf, int buflen) |
| int | trap_LAN_GetPingQueueCount (void) |
| void | trap_LAN_GetServerAddressString (int source, int n, char *buf, int buflen) |
| int | trap_LAN_GetServerCount (int source) |
| void | trap_LAN_GetServerInfo (int source, int n, char *buf, int buflen) |
| int | trap_LAN_GetServerPing (int source, int n) |
| void | trap_LAN_LoadCachedServers () |
| void | trap_LAN_MarkServerVisible (int source, int n, qboolean visible) |
| void | trap_LAN_RemoveServer (int source, const char *addr) |
| void | trap_LAN_ResetPings (int n) |
| void | trap_LAN_SaveCachedServers () |
| int | trap_LAN_ServerIsVisible (int source, int n) |
| int | trap_LAN_ServerStatus (const char *serverAddress, char *serverStatus, int maxLen) |
| qboolean | trap_LAN_UpdateVisiblePings (int source) |
| int | trap_MemoryRemaining (void) |
| int | trap_Milliseconds (void) |
| int | trap_PC_AddGlobalDefine (char *define) |
| int | trap_PC_FreeSource (int handle) |
| int | trap_PC_LoadSource (const char *filename) |
| int | trap_PC_ReadToken (int handle, pc_token_t *pc_token) |
| int | trap_PC_SourceFileAndLine (int handle, char *filename, int *line) |
| void | trap_Print (const char *string) |
| void | trap_R_AddLightToScene (const vec3_t org, float intensity, float r, float g, float b) |
| void | trap_R_AddPolyToScene (qhandle_t hShader, int numVerts, const polyVert_t *verts) |
| void | trap_R_AddRefEntityToScene (const refEntity_t *re) |
| void | trap_R_ClearScene (void) |
| void | trap_R_DrawStretchPic (float x, float y, float w, float h, float s1, float t1, float s2, float t2, qhandle_t hShader) |
| void | trap_R_ModelBounds (clipHandle_t model, vec3_t mins, vec3_t maxs) |
| void | trap_R_RegisterFont (const char *fontName, int pointSize, fontInfo_t *font) |
| qhandle_t | trap_R_RegisterModel (const char *name) |
| qhandle_t | trap_R_RegisterShaderNoMip (const char *name) |
| qhandle_t | trap_R_RegisterSkin (const char *name) |
| void | trap_R_RemapShader (const char *oldShader, const char *newShader, const char *timeOffset) |
| void | trap_R_RenderScene (const refdef_t *fd) |
| void | trap_R_SetColor (const float *rgba) |
| int | trap_RealTime (qtime_t *qtime) |
| sfxHandle_t | trap_S_RegisterSound (const char *sample, qboolean compressed) |
| void | trap_S_StartBackgroundTrack (const char *intro, const char *loop) |
| void | trap_S_StartLocalSound (sfxHandle_t sfx, int channelNum) |
| void | trap_S_StopBackgroundTrack (void) |
| void | trap_SetCDKey (char *buf) |
| void | trap_SetPbClStatus (int status) |
| void | trap_UpdateScreen (void) |
| qboolean | trap_VerifyCDKey (const char *key, const char *chksum) |
|
|
Definition at line 33 of file ui_syscalls.c. Referenced by Sys_LoadDll(). 00033 {
00034 syscall = syscallptr;
00035 }
|
|
|
|
|
|
Definition at line 37 of file ui_syscalls.c. Referenced by testPrintFloat(), trap_AAS_PredictClientMovement(), trap_BotAddAvoidSpot(), trap_BotChooseNBGItem(), trap_BotLibStartFrame(), trap_BotLoadCharacter(), trap_BotMoveInDirection(), trap_BotMovementViewTarget(), trap_BotSetAvoidGoalTime(), trap_Characteristic_BFloat(), trap_CM_LerpTag(), trap_Cvar_SetValue(), trap_EA_EndRegular(), trap_EA_GetInput(), trap_EA_Move(), trap_R_AddAdditiveLightToScene(), trap_R_AddLightToScene(), trap_R_DrawStretchPic(), trap_R_LerpTag(), and trap_SetUserCmdValue(). 00037 {
00038 float floatTemp;
00039 floatTemp = x;
00040 return *(int *)&floatTemp;
00041 }
|
|
|
Definition at line 93 of file ui_syscalls.c. References CG_ARGC, and UI_ARGC. 00093 {
00094 return syscall( UI_ARGC );
00095 }
|
|
||||||||||||||||
|
Definition at line 97 of file ui_syscalls.c. References buffer, CG_ARGV, n, and UI_ARGV. Referenced by CG_Argv(), CG_TargetCommand_f(), ClientCommand(), Cmd_CallTeamVote_f(), Cmd_CallVote_f(), Cmd_Follow_f(), Cmd_GameCommand_f(), Cmd_SetViewpos_f(), Cmd_Team_f(), Cmd_TeamTask_f(), Cmd_TeamVote_f(), Cmd_Tell_f(), Cmd_VoiceTell_f(), Cmd_Vote_f(), ConcatArgs(), ConsoleCommand(), Svcmd_AddBot_f(), Svcmd_AddIP_f(), Svcmd_ForceTeam_f(), Svcmd_RemoveIP_f(), and UI_Argv(). 00097 {
00098 syscall( UI_ARGV, n, buffer, bufferLength );
00099 }
|
|
|
Definition at line 380 of file ui_syscalls.c. References CG_CIN_DRAWCINEMATIC, and UI_CIN_DRAWCINEMATIC. Referenced by UI_DrawCinematic(), UI_DrawClanCinematic(), UI_DrawMapCinematic(), UI_DrawNetMapCinematic(), and UI_DrawPreviewCinematic(). 00380 {
00381 syscall(UI_CIN_DRAWCINEMATIC, handle);
00382 }
|
|
||||||||||||||||||||||||||||
|
Definition at line 362 of file ui_syscalls.c. References bits, CG_CIN_PLAYCINEMATIC, height, UI_CIN_PLAYCINEMATIC, and width. Referenced by UI_DrawClanCinematic(), UI_DrawMapCinematic(), UI_DrawPreviewCinematic(), UI_FeederSelection(), and UI_PlayCinematic(). 00362 {
00363 return syscall(UI_CIN_PLAYCINEMATIC, arg0, xpos, ypos, width, height, bits);
00364 }
|
|
|
Definition at line 374 of file ui_syscalls.c. References CG_CIN_RUNCINEMATIC, e_status, and UI_CIN_RUNCINEMATIC. Referenced by UI_DrawClanCinematic(), UI_DrawMapCinematic(), UI_DrawNetMapCinematic(), UI_DrawPreviewCinematic(), and UI_RunCinematicFrame(). 00374 {
00375 return syscall(UI_CIN_RUNCINEMATIC, handle);
00376 }
|
|
||||||||||||||||||||||||
|
Definition at line 386 of file ui_syscalls.c. References CG_CIN_SETEXTENTS, h(), UI_CIN_SETEXTENTS, w, x, and y. Referenced by UI_DrawCinematic(), UI_DrawClanCinematic(), UI_DrawMapCinematic(), UI_DrawNetMapCinematic(), and UI_DrawPreviewCinematic(). 00386 {
00387 syscall(UI_CIN_SETEXTENTS, handle, x, y, w, h);
00388 }
|
Here is the call graph for this function:

|
|
Definition at line 368 of file ui_syscalls.c. References CG_CIN_STOPCINEMATIC, e_status, and UI_CIN_STOPCINEMATIC. Referenced by UI_ClanName_HandleKey(), UI_FeederSelection(), UI_RunMenuScript(), and UI_StopCinematic(). 00368 {
00369 return syscall(UI_CIN_STOPCINEMATIC, handle);
00370 }
|
|
||||||||||||||||||||||||||||
|
Definition at line 181 of file ui_syscalls.c. References PASSFLOAT(), and UI_CM_LERPTAG. Referenced by UI_PositionEntityOnTag(), and UI_PositionRotatedEntityOnTag(). 00181 {
00182 return syscall( UI_CM_LERPTAG, tag, mod, startFrame, endFrame, PASSFLOAT(frac), tagName );
00183 }
|
Here is the call graph for this function:

|
||||||||||||
|
||||||||||||||||
|
Definition at line 85 of file ui_syscalls.c. References UI_CVAR_CREATE. 00085 {
00086 syscall( UI_CVAR_CREATE, var_name, var_value, flags );
00087 }
|
|
||||||||||||||||
|
Definition at line 89 of file ui_syscalls.c. References buffer, and UI_CVAR_INFOSTRINGBUFFER. 00089 {
00090 syscall( UI_CVAR_INFOSTRINGBUFFER, bit, buffer, bufsize );
00091 }
|
|
||||||||||||||||||||
|
Definition at line 55 of file ui_syscalls.c. References CG_CVAR_REGISTER, UI_CVAR_REGISTER, and value. Referenced by _UI_Init(), ArenaServers_MenuInit(), BotAILoadMap(), BotAISetup(), BotSetupDeathmatchAI(), CG_RegisterCvars(), G_InitBots(), G_LoadArenas(), G_LoadBots(), G_RegisterCvars(), UI_LoadArenas(), UI_LoadBots(), and UI_RegisterCvars(). 00055 {
00056 syscall( UI_CVAR_REGISTER, cvar, var_name, value, flags );
00057 }
|
|
|
Definition at line 81 of file ui_syscalls.c. References name, and UI_CVAR_RESET. Referenced by Controls_InitCvars(), and Preferences_Event(). 00081 {
00082 syscall( UI_CVAR_RESET, name );
00083 }
|
|
||||||||||||
|
||||||||||||
|
Definition at line 77 of file ui_syscalls.c. References PASSFLOAT(), UI_CVAR_SETVALUE, and value. Referenced by ArenaServers_Event(), Controls_InitCvars(), Controls_SetConfig(), GraphicsOptions_ApplyChanges(), PlayerSettings_SaveChanges(), Preferences_Event(), Reset_MenuEvent(), ServerOptions_Start(), StartServer_MenuEvent(), UI_DisplayOptionsMenu_Event(), UI_Effects_HandleKey(), UI_NetworkOptionsMenu_Event(), UI_RunMenuScript(), UI_SoundOptionsMenu_Event(), UI_SPArena_Start(), UI_SPLevelMenu_LevelEvent(), UI_SPLevelMenu_ResetAction(), UI_SPLevelMenu_SetMenuItems(), UI_SPPostgameMenu_MenuDraw(), UI_SPSkillMenu_SkillEvent(), UI_StartSkirmish(), and UI_Update(). 00077 {
00078 syscall( UI_CVAR_SETVALUE, var_name, PASSFLOAT( value ) );
00079 }
|
Here is the call graph for this function:

|
|
Definition at line 59 of file ui_syscalls.c. References CG_CVAR_UPDATE, and UI_CVAR_UPDATE. Referenced by BotAIStartFrame(), BotCheckConsoleMessages(), BotInterbreedEndMatch(), BotInterbreeding(), BotTestAAS(), CG_UpdateCvars(), G_CheckMinimumPlayers(), G_UpdateCvars(), and UI_UpdateCvars(). 00059 {
00060 syscall( UI_CVAR_UPDATE, cvar );
00061 }
|
|
||||||||||||||||
|
Here is the call graph for this function:

|
|
Definition at line 47 of file ui_syscalls.c. References CG_ERROR, string(), and UI_ERROR. Referenced by CG_Error(), Com_Error(), G_Error(), Menu_AddItem(), Menu_Draw(), MField_Draw(), UI_LoadMenus(), UI_PopMenu(), UI_PushMenu(), and UI_SetLerpFrameAnimation(). 00047 {
00048 syscall( UI_ERROR, string );
00049 }
|
Here is the call graph for this function:

|
|
Definition at line 117 of file ui_syscalls.c. References CG_FS_FCLOSEFILE, f, and UI_FS_FCLOSEFILE. Referenced by CG_HeadModelVoiceChats(), CG_ParseAnimationFile(), CG_ParseVoiceChats(), G_LoadArenasFromFile(), G_LoadBotsFromFile(), G_ShutdownGame(), GetMenuBuffer(), UI_CalcPostGameStats(), UI_ClearScores(), UI_LoadArenasFromFile(), UI_LoadBestScores(), UI_LoadBotsFromFile(), and UI_ParseAnimationFile(). 00117 {
00118 syscall( UI_FS_FCLOSEFILE, f );
00119 }
|
|
||||||||||||||||
|
Definition at line 105 of file ui_syscalls.c. References CG_FS_FOPENFILE, f, mode, and UI_FS_FOPENFILE. Referenced by CG_FileExists(), CG_HeadModelVoiceChats(), CG_ParseAnimationFile(), CG_ParseVoiceChats(), G_InitGame(), G_LoadArenasFromFile(), G_LoadBotsFromFile(), GetMenuBuffer(), UI_CalcPostGameStats(), UI_ClearScores(), UI_FileExists(), UI_hasSkinForBase(), UI_LoadArenasFromFile(), UI_LoadBestScores(), UI_LoadBotsFromFile(), and UI_ParseAnimationFile(). 00105 {
00106 return syscall( UI_FS_FOPENFILE, qpath, f, mode );
00107 }
|
|
||||||||||||||||||||
|
Definition at line 121 of file ui_syscalls.c. References G_FS_GETFILELIST, and UI_FS_GETFILELIST. Referenced by Demos_MenuInit(), G_LoadArenas(), G_LoadBots(), LoadConfig_MenuInit(), PlayerModel_BuildList(), UI_BuildQ3Model_List(), UI_ClearScores(), UI_LoadArenas(), UI_LoadBots(), UI_LoadDemos(), UI_LoadMods(), UI_LoadMovies(), UI_LoadTeams(), UI_Mods_LoadMods(), and UI_TeamArenaExists(). 00121 {
00122 return syscall( UI_FS_GETFILELIST, path, extension, listbuf, bufsize );
00123 }
|
|
||||||||||||||||
|
Definition at line 109 of file ui_syscalls.c. References buffer, CG_FS_READ, f, and UI_FS_READ. Referenced by CG_HeadModelVoiceChats(), CG_ParseAnimationFile(), CG_ParseVoiceChats(), G_LoadArenasFromFile(), G_LoadBotsFromFile(), GetMenuBuffer(), UI_CalcPostGameStats(), UI_LoadArenasFromFile(), UI_LoadBestScores(), UI_LoadBotsFromFile(), and UI_ParseAnimationFile(). 00109 {
00110 syscall( UI_FS_READ, buffer, len, f );
00111 }
|
|
||||||||||||||||
|
Definition at line 125 of file ui_syscalls.c. References CG_FS_SEEK, f, offset, and UI_FS_SEEK. 00125 {
00126 return syscall( UI_FS_SEEK, f, offset, origin );
00127 }
|
|
||||||||||||||||
|
Definition at line 113 of file ui_syscalls.c. References buffer, CG_FS_WRITE, f, and UI_FS_WRITE. Referenced by G_LogPrintf(), UI_CalcPostGameStats(), and UI_ClearScores(). 00113 {
00114 syscall( UI_FS_WRITE, buffer, len, f );
00115 }
|
|
||||||||||||
|
Definition at line 321 of file ui_syscalls.c. References UI_GET_CDKEY. Referenced by UI_CDKeyMenu_Init(), UI_MainMenu(), and UI_RunMenuScript(). 00321 {
00322 syscall( UI_GET_CDKEY, buf, buflen );
00323 }
|
|
|
Definition at line 233 of file ui_syscalls.c. References state, and UI_GETCLIENTSTATE. Referenced by InGame_MenuInit(), Options_MenuInit(), UI_BuildPlayerList(), UI_ConfirmMenu_Style(), UI_DrawConnectScreen(), UI_Message(), UI_ResetMenu(), UI_TeamOrdersMenu_BuildBotList(), and UI_TeamOrdersMenu_f(). 00233 {
00234 syscall( UI_GETCLIENTSTATE, state );
00235 }
|
|
||||||||||||
|
Definition at line 229 of file ui_syscalls.c. References UI_GETCLIPBOARDDATA. Referenced by MField_Paste(). 00229 {
00230 syscall( UI_GETCLIPBOARDDATA, buf, bufsize );
00231 }
|
|
||||||||||||||||
|
Definition at line 241 of file ui_syscalls.c. References UI_GETCONFIGSTRING. Referenced by InGame_MenuInit(), Prepname(), TeamMain_MenuInit(), UI_AddBotsMenu_Init(), UI_BuildPlayerList(), UI_CalcPostGameStats(), UI_DrawConnectScreen(), UI_RemoveBotsMenu_GetBots(), UI_RemoveBotsMenu_SetBotNames(), UI_ServerInfoMenu(), UI_SPPostgameMenu_f(), UI_SPPostgameMenu_MenuDraw(), UI_SPPostgameMenu_MenuDrawScoreLine(), UI_TeamOrdersMenu_BuildBotList(), and UI_TeamOrdersMenu_f(). 00241 {
00242 return syscall( UI_GETCONFIGSTRING, index, buff, buffsize );
00243 }
|
|
|
Definition at line 237 of file ui_syscalls.c. References CG_GETGLCONFIG, and UI_GETGLCONFIG. Referenced by _UI_Init(), CG_Init(), and UI_Init(). 00237 {
00238 syscall( UI_GETGLCONFIG, glconfig );
00239 }
|
|
|
Definition at line 217 of file ui_syscalls.c. References UI_KEY_CLEARSTATES. 00217 {
00218 syscall( UI_KEY_CLEARSTATES );
00219 }
|
|
||||||||||||||||
|
Definition at line 197 of file ui_syscalls.c. References UI_KEY_GETBINDINGBUF. Referenced by Controls_GetKeyAssignment(). 00197 {
00198 syscall( UI_KEY_GETBINDINGBUF, keynum, buf, buflen );
00199 }
|
|
|
Definition at line 221 of file ui_syscalls.c. References CG_KEY_GETCATCHER, and UI_KEY_GETCATCHER. 00221 {
00222 return syscall( UI_KEY_GETCATCHER );
00223 }
|
|
|
Definition at line 209 of file ui_syscalls.c. References qboolean, and UI_KEY_GETOVERSTRIKEMODE. 00209 {
00210 return syscall( UI_KEY_GETOVERSTRIKEMODE );
00211 }
|
|
|
Definition at line 205 of file ui_syscalls.c. References CG_KEY_ISDOWN, qboolean, and UI_KEY_ISDOWN. Referenced by MField_KeyDownEvent(). 00205 {
00206 return syscall( UI_KEY_ISDOWN, keynum );
00207 }
|
|