Main Page | Class Hierarchy | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals

ui_syscalls.c File Reference

#include "ui_local.h"

Include dependency graph for ui_syscalls.c:

Include dependency graph

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)


Function Documentation

void dllEntry int(QDECL *syscallptr)(int arg,...)   ) 
 

Definition at line 33 of file ui_syscalls.c.

Referenced by Sys_LoadDll().

00033                                                         {
00034     syscall = syscallptr;
00035 }

int QDECL *  syscall  )  [static]
 

int PASSFLOAT float  x  ) 
 

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 }

int trap_Argc void   ) 
 

Definition at line 93 of file ui_syscalls.c.

References CG_ARGC, and UI_ARGC.

00093                       {
00094     return syscall( UI_ARGC );
00095 }

void trap_Argv int  n,
char *  buffer,
int  bufferLength
 

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 }

void trap_CIN_DrawCinematic int  handle  ) 
 

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 }

int trap_CIN_PlayCinematic const char *  arg0,
int  xpos,
int  ypos,
int  width,
int  height,
int  bits
 

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 }

e_status trap_CIN_RunCinematic int  handle  ) 
 

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 }

void trap_CIN_SetExtents int  handle,
int  x,
int  y,
int  w,
int  h
 

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:

e_status trap_CIN_StopCinematic int  handle  ) 
 

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 }

int trap_CM_LerpTag orientation_t tag,
clipHandle_t  mod,
int  startFrame,
int  endFrame,
float  frac,
const char *  tagName
 

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:

void trap_Cmd_ExecuteText int  exec_when,
const char *  text
 

Definition at line 101 of file ui_syscalls.c.

References UI_CMD_EXECUTETEXT.

Referenced by ArenaServers_DoRefresh(), ArenaServers_Go(), ArenaServers_StartRefresh(), Controls_SetConfig(), Demos_MenuEvent(), GraphicsOptions_ApplyChanges(), InGame_Event(), InGame_RestartAction(), LoadConfig_MenuEvent(), Main_MenuEvent(), Menu_DefaultKey(), NeedCDAction(), NeedCDKeyAction(), Rankings_MenuEvent(), ServerOptions_Start(), Setup_ResetDefaults_Action(), SpecifyServer_Event(), TeamMain_MenuEvent(), UI_AddBotsMenu_FightEvent(), UI_CinematicsMenu_Event(), UI_CreditMenu_Key(), UI_KeyConnect(), UI_Mods_MenuEvent(), UI_RemoveBotsMenu_DeleteEvent(), UI_RunMenuScript(), UI_SaveConfigMenu_SaveEvent(), UI_SoundOptionsMenu_Event(), UI_SPArena_Start(), UI_SPPostgameMenu_AgainEvent(), UI_SPPostgameMenu_f(), UI_SPPostgameMenu_MenuDraw(), UI_SPPostgameMenu_MenuEvent(), UI_SPPostgameMenu_MenuKey(), UI_StartDemoLoop(), UI_StartServerRefresh(), UI_StartSkirmish(), and UI_TeamOrdersMenu_ListEvent().

00101                                                              {
00102     syscall( UI_CMD_EXECUTETEXT, exec_when, text );
00103 }

void trap_Cvar_Create const char *  var_name,
const char *  var_value,
int  flags
 

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 }

void trap_Cvar_InfoStringBuffer int  bit,
char *  buffer,
int  bufsize
 

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 }

void trap_Cvar_Register vmCvar_t cvar,
const char *  var_name,
const char *  value,
int  flags
 

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 }

void trap_Cvar_Reset const char *  name  ) 
 

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 }

void trap_Cvar_Set const char *  var_name,
const char *  value
 

Definition at line 63 of file ui_syscalls.c.

References CG_CVAR_SET, UI_CVAR_SET, and value.

Referenced by _UI_Init(), _UI_KeyEvent(), _UI_SetActiveMenu(), ArenaServers_SaveChanges(), BeginIntermission(), BotAIStartFrame(), BotInterbreedEndMatch(), BotInterbreeding(), BotWriteSessionData(), CG_CalcVrect(), CG_DrawActiveFrame(), CG_MapRestart(), CG_ParseServerinfo(), CG_PredictPlayerState(), CG_SetSelectedPlayerName(), CG_ShowResponseHead(), CG_SizeDown_f(), CG_SizeUp_f(), CG_StartOrbit_f(), CG_UpdateCvars(), CheckCvars(), CheckTournament(), ClientThink_real(), ErrorMessage_Key(), Favorites_Add(), G_InitBots(), G_RankRunFrame(), G_RegisterCvars(), G_RunFrame(), G_SpawnBots(), G_WriteClientSessionData(), G_WriteSessionData(), GraphicsOptions_ApplyChanges(), Main_MenuEvent(), PlayerModel_SaveChanges(), PlayerSettings_MenuEvent(), PlayerSettings_SaveChanges(), ServerOptions_Start(), SP_worldspawn(), SpecifyLeague_Event(), UI_BuildFindPlayerList(), UI_BuildPlayerList(), UI_CalcPostGameStats(), UI_CDKeyMenu_Init(), UI_CinematicsMenu_Event(), UI_ClanName_HandleKey(), UI_Crosshair_HandleKey(), UI_DrawJoinGameType(), UI_DrawMapCinematic(), UI_DrawMapPreview(), UI_DrawMapTimeToBeat(), UI_DrawNetGameType(), UI_DrawNetMapCinematic(), UI_FeederSelection(), UI_ForceMenuOff(), UI_GameType_HandleKey(), UI_Handicap_HandleKey(), UI_JoinGameType_HandleKey(), UI_LogAwardData(), UI_MainMenu(), UI_Mods_MenuEvent(), UI_NetGameType_HandleKey(), UI_NetSource_HandleKey(), UI_NewGame(), UI_NextOpponent(), UI_Pause(), UI_PriorOpponent(), UI_RunMenuScript(), UI_SelectedPlayer_HandleKey(), UI_SetActiveMenu(), UI_SetBestScore(), UI_SetBestScores(), UI_SetCapFragLimits(), UI_ShowPostGame(), UI_ShowTierVideo(), UI_Skill_HandleKey(), UI_SPLevelMenu_Init(), UI_SPPostgameMenu_MenuDraw(), UI_SPUnlock_f(), UI_SPUnlockMedals_f(), UI_StartServerRefresh(), UI_StartSkirmish(), UI_TeamMember_HandleKey(), UI_TeamName_HandleKey(), UI_Update(), and UpdateIPBans().

00063                                                               {
00064     syscall( UI_CVAR_SET, var_name, value );
00065 }

void trap_Cvar_SetValue const char *  var_name,
float  value
 

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:

void trap_Cvar_Update vmCvar_t cvar  ) 
 

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 }

void trap_Cvar_VariableStringBuffer const char *  var_name,
char *  buffer,
int  bufsize
 

Definition at line 73 of file ui_syscalls.c.

References buffer, CG_CVAR_VARIABLESTRINGBUFFER, and UI_CVAR_VARIABLESTRINGBUFFER.

Referenced by _UI_SetActiveMenu(), ArenaServers_LoadFavorites(), ArenaServers_StartRefresh(), BG_AddPredictableEventToPlayerstate(), BotInitLibrary(), BotReadSessionData(), CG_DrawInformation(), CG_NewClientInfo(), CG_RegisterCvars(), CG_StartOrbit_f(), Cmd_CallVote_f(), Controls_DrawPlayer(), Controls_MenuInit(), Favorites_Add(), G_InitWorldSession(), G_RankGameOver(), G_ReadSessionData(), PlayerModel_SetMenuItems(), PlayerSettings_DrawPlayer(), ServerOptions_InitPlayerItems(), SpecifyLeague_GetList(), trap_Cvar_VariableValue(), UI_BuildFindPlayerList(), UI_BuildServerDisplayList(), UI_CanShowTierVideo(), UI_Cvar_VariableString(), UI_DrawConnectScreen(), UI_GetAwardLevel(), UI_GetBestScore(), UI_LogAwardData(), UI_MainMenu(), UI_SetBestScore(), UI_ShowTierVideo(), UI_SPLevelMenu_Init(), UI_SPLevelMenu_MenuDraw(), UI_SPUnlock_f(), and UI_SPUnlockMedals_f().

00073                                                                                        {
00074     syscall( UI_CVAR_VARIABLESTRINGBUFFER, var_name, buffer, bufsize );
00075 }

float trap_Cvar_VariableValue const char *  var_name  ) 
 

Definition at line 67 of file ui_syscalls.c.

References atof(), trap_Cvar_VariableStringBuffer(), and UI_CVAR_VARIABLEVALUE.

Referenced by _UI_Init(), ArenaServers_MaxPing(), ArenaServers_MenuInit(), ArenaServers_StartRefresh(), Controls_InitCvars(), Controls_SetConfig(), Demos_MenuInit(), G_AddRandomBot(), G_SpawnBots(), GraphicsOptions_SetMenuItems(), InGame_MenuInit(), PlayerModel_BuildList(), PlayerSettings_SetMenuItems(), Preferences_SetMenuItems(), Punkbuster_ConfirmDisable(), Punkbuster_ConfirmEnable(), Rankings_MenuInit(), ServerOptions_MenuInit(), ServerOptions_SetMenuItems(), Signup_MenuInit(), StartServer_Cache(), UI_AddBotsMenu_Init(), UI_BotName_HandleKey(), UI_BuildPlayerList(), UI_CalcPostGameStats(), UI_DisplayDownloadInfo(), UI_DisplayOptionsMenu_Init(), UI_DrawBotName(), UI_DrawHandicap(), UI_DrawPlayerModel(), UI_DrawSkill(), UI_DrawTeamMember(), UI_DrawTier(), UI_DrawTierGameType(), UI_DrawTierMap(), UI_DrawTierMapName(), UI_Handicap_HandleKey(), UI_InitGameinfo(), UI_LoadBestScores(), UI_LoadDemos(), UI_NetworkOptionsMenu_Init(), UI_OwnerDrawVisible(), UI_OwnerDrawWidth(), UI_RankStatusMenu(), UI_RunMenuScript(), UI_SelectedPlayer_HandleKey(), UI_ServerInfoMenu(), UI_SetBestScore(), UI_SetupMenu_Init(), UI_Skill_HandleKey(), UI_SoundOptionsMenu_Init(), UI_SPArena_Start(), UI_SPLevelMenu_Init(), UI_SPPostgameMenu_Cache(), UI_SPPostgameMenu_MenuDraw(), UI_SPSkillMenu_Init(), UI_SPSkillMenu_SkillEvent(), UI_StartServerRefresh(), UI_StartSkirmish(), UI_TeamMember_HandleKey(), and UI_Update().

00067                                                       {
00068     int temp;
00069     temp = syscall( UI_CVAR_VARIABLEVALUE, var_name );
00070     return (*(float*)&temp);
00071 }

Here is the call graph for this function:

void trap_Error const char *  string  ) 
 

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:

void trap_FS_FCloseFile fileHandle_t  f  ) 
 

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 }

int trap_FS_FOpenFile const char *  qpath,
fileHandle_t f,
fsMode_t  mode
 

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 }

int trap_FS_GetFileList const char *  path,
const char *  extension,
char *  listbuf,
int  bufsize
 

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 }

void trap_FS_Read void *  buffer,
int  len,
fileHandle_t  f
 

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 }

int trap_FS_Seek fileHandle_t  f,
long  offset,
int  origin
 

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 }

void trap_FS_Write const void *  buffer,
int  len,
fileHandle_t  f
 

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 }

void trap_GetCDKey char *  buf,
int  buflen
 

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 }

void trap_GetClientState uiClientState_t state  ) 
 

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 }

void trap_GetClipboardData char *  buf,
int  bufsize
 

Definition at line 229 of file ui_syscalls.c.

References UI_GETCLIPBOARDDATA.

Referenced by MField_Paste().

00229                                                      {
00230     syscall( UI_GETCLIPBOARDDATA, buf, bufsize );
00231 }

int trap_GetConfigString int  index,
char *  buff,
int  buffsize
 

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 }

void trap_GetGlconfig glconfig_t glconfig  ) 
 

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 }

void trap_Key_ClearStates void   ) 
 

Definition at line 217 of file ui_syscalls.c.

References UI_KEY_CLEARSTATES.

00217                                   {
00218     syscall( UI_KEY_CLEARSTATES );
00219 }

void trap_Key_GetBindingBuf int  keynum,
char *  buf,
int  buflen
 

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 }

int trap_Key_GetCatcher void   ) 
 

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 }

qboolean trap_Key_GetOverstrikeMode void   ) 
 

Definition at line 209 of file ui_syscalls.c.

References qboolean, and UI_KEY_GETOVERSTRIKEMODE.

00209                                             {
00210     return syscall( UI_KEY_GETOVERSTRIKEMODE );
00211 }

qboolean trap_Key_IsDown int  keynum  ) 
 

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 }

v