本文整理汇总了C++中Cbuf_AddText函数的典型用法代码示例。如果您正苦于以下问题:C++ Cbuf_AddText函数的具体用法?C++ Cbuf_AddText怎么用?C++ Cbuf_AddText使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了Cbuf_AddText函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。
示例1: Cbuf_ExecuteText
/*
-----------------------------------------------------------------------------
Function: Cbuf_ExecuteText -Execute string.
Parameters: exec_when -[in] see execwhen_t definition.
text -[in] string with command to execute.
Returns:
Notes:
-----------------------------------------------------------------------------
*/
PUBLIC void Cbuf_ExecuteText( execwhen_t exec_when, char *text )
{
switch( exec_when )
{
case EXEC_NOW:
Cmd_ExecuteString( text );
break;
case EXEC_INSERT:
Cbuf_InsertText( text );
break;
case EXEC_APPEND:
Cbuf_AddText( text );
break;
default:
Com_DPrintf( "Cbuf_ExecuteText: bad exec_when" );
}
}
开发者ID:feraligatr,项目名称:wolf2d,代码行数:32,代码来源:cmd.c
示例2: Cbuf_AddEarlyCommands
/*
===============
Cbuf_AddEarlyCommands
Adds command line parameters as script statements
Commands lead with a +, and continue until another +
Set commands are added early, so they are guaranteed to be set before
the client and server initialize for the first time.
Other commands are added late, after all initialization is complete.
===============
*/
void Cbuf_AddEarlyCommands (qboolean clear)
{
int i;
char *s;
for (i=0 ; i<COM_Argc() ; i++)
{
s = COM_Argv(i);
if (strcmp (s, "+set"))
continue;
Cbuf_AddText (va("set %s %s\n", COM_Argv(i+1), COM_Argv(i+2)));
if (clear)
{
COM_ClearArgv(i);
COM_ClearArgv(i+1);
COM_ClearArgv(i+2);
}
i+=2;
}
}
开发者ID:davepkennedy,项目名称:Quake2,代码行数:33,代码来源:cmd.c
示例3: Cbuf_ExecuteText
/*
============
Cbuf_ExecuteText
============
*/
void Cbuf_ExecuteText( int exec_when, const char *text ) {
switch ( exec_when )
{
case EXEC_NOW:
if ( text && strlen( text ) > 0 ) {
Cmd_ExecuteString( text );
} else {
Cbuf_Execute();
}
break;
case EXEC_INSERT:
Cbuf_InsertText( text );
break;
case EXEC_APPEND:
Cbuf_AddText( text );
break;
default:
Com_Error( ERR_FATAL, "Cbuf_ExecuteText: bad exec_when" );
}
}
开发者ID:chegestar,项目名称:omni-bot,代码行数:25,代码来源:cmd.c
示例4: TP_SoundTrigger
qboolean TP_SoundTrigger(char *message) //if there is a trigger there, play it. Return true if we found one, stripping off the file (it's neater that way).
{
char *strip;
char *lineend = NULL;
char soundname[128];
int filter = 0;
for (strip = message+strlen(message)-1; *strip && strip >= message; strip--)
{
if (*strip == '#')
filter++;
if (*strip == ':')
break; //if someone says just one word, we can take any tidles in their name to be a voice command
if (*strip == '\n')
lineend = strip;
else if (*strip <= ' ')
{
if (filter == 0 || filter == 1) //allow one space in front of a filter.
{
filter++;
continue;
}
break;
}
else if (*strip == '~')
{
//looks like a trigger, whoopie!
if (lineend-strip > sizeof(soundname)-1)
{
Con_Printf("Sound trigger's file-name was too long\n");
return false;
}
Q_strncpyz(soundname, strip+1, lineend-strip);
memmove(strip, lineend, strlen(lineend)+1);
Cbuf_AddText(va("play %s\n", soundname), RESTRICT_LOCAL);
return true;
}
}
return false;
}
开发者ID:ProfessorKaos64,项目名称:ftequake,代码行数:41,代码来源:teamplay.c
示例5: main
int main(int argc, char **argv)
{
char cmdline[] = "+set sv_pure 0 +set vm_ui 0 +set vm_game 0 +set vm_cgame 0 +set fs_basepath ./app/native";
cvar_t *cv = NULL;
char cmd_rundemo[100];
Sys_SetDefaultCDPath("./app/native");
//saved_euid = geteuid();
// Clear the queues
memset( &eventQue[0], 0, MAX_QUED_EVENTS*sizeof(sysEvent_t) );
memset( &sys_packetReceived[0], 0, MAX_MSGLEN*sizeof(byte) );
// Initialize game
Com_Init(cmdline);
NET_Init();
// Start game with running demo
#if 0
cv = Cvar_Get("rundemo", "0", 0);
Cvar_Set("rundemo", "demo1.dm_68");
if (strcmp(cv->string, "0")) {
memset(cmd_rundemo, 0, sizeof(cmd_rundemo));
sprintf(cmd_rundemo, "demo %s", cv->string, sizeof(cmd_rundemo));
Cbuf_AddText(cmd_rundemo);
Com_Printf(" -- starting execution --- ");
Cbuf_Execute();
Com_Printf(" -- execution done --- ");
}
#endif
while (1) {
#if 0
Cvar_Set("nextdemo", "demo1.dm_68");
#endif
Com_Frame( );
}
}
开发者ID:LoudHoward,项目名称:Quake3,代码行数:41,代码来源:qnx_main.c
示例6: GL_Init
/*
===============
GL_Init
===============
*/
static void GL_Init (void)
{
gl_vendor = (const char *) glGetString (GL_VENDOR);
gl_renderer = (const char *) glGetString (GL_RENDERER);
gl_version = (const char *) glGetString (GL_VERSION);
gl_extensions = (const char *) glGetString (GL_EXTENSIONS);
if (gl_extensions_nice != NULL)
Z_Free (gl_extensions_nice);
gl_extensions_nice = GL_MakeNiceExtensionsList (gl_extensions);
GL_CheckExtensions (); //johnfitz
//johnfitz -- intel video workarounds from Baker
if (!strcmp(gl_vendor, "Intel"))
{
Con_Printf ("Intel Display Adapter detected, enabling gl_clear\n");
Cbuf_AddText ("gl_clear 1");
}
//johnfitz
}
开发者ID:antoche,项目名称:Quakespasm-Rift,代码行数:26,代码来源:gl_vidsdl.c
示例7: SV_RemoteCmdInit
void SV_RemoteCmdInit(){
sv_rconsys = Cvar_RegisterBool("sv_rconsys", qtrue, CVAR_ARCHIVE, "Disable/enable the internal remote-command-system");
if(!sv_rconsys->boolean) return;
//Init the permission table with default values
Cmd_ResetPower();
Cmd_SetPower("cmdlist", 1);
Cmd_SetPower("serverinfo", 1);
Cmd_SetPower("systeminfo", 1);
Cmd_SetPower("ministatus", 1);
Cmd_SetPower("status", 30);
Cmd_SetPower("dumpuser", 40);
Cmd_SetPower("kick", 35);
Cmd_SetPower("tempban", 50);
Cmd_SetPower("unban", 50);
Cmd_SetPower("permban", 80);
Cmd_SetPower("btempban", 80);
Cmd_SetPower("bpermban", 70);
Cmd_SetPower("map", 60);
Cmd_SetPower("map_restart", 50);
Cmd_SetPower("adminlist", 90);
Cmd_SetPower("cmdpowerlist", 90);
Cmd_SetPower("tell", 60);
Cmd_SetPower("say", 60);
Cmd_SetPower("screentell", 70);
Cmd_SetPower("screensay", 70);
Cmd_SetPower("dumpbanlist", 30);
Cmd_SetPower("setcmdminpower", 95);
Cmd_SetPower("setadmin", 95);
Cmd_SetPower("unsetadmin", 95);
Cbuf_AddText(0, "addCommand gametype \"set g_gametype $arg; map_restart\"");
Cmd_SetPower("gametype", 60);
cmdInvoker.currentCmdPower = 100; //Set the default to 100 to prevent any blocking on local system. If a command gets remotely executed it will be set temporarely to the expected power
//Now read the rest from file - Changed this will happen by executing nvconfig.cfg (nonvolatile config)
cmdSystemInitialized = qtrue;
}
开发者ID:Call-of-Duty-Scripts,项目名称:CoD4X17a_testing,代码行数:40,代码来源:sv_ingameadmin.c
示例8: IN_Frame
/*
===============
IN_Frame
===============
*/
void IN_Frame( void )
{
qboolean loading;
IN_JoyMove( );
IN_ProcessEvents( );
// If not DISCONNECTED (main menu) or ACTIVE (in game), we're loading
loading = ( clc.state != CA_DISCONNECTED && clc.state != CA_ACTIVE );
if( !cls.glconfig.isFullscreen && ( Key_GetCatcher( ) & KEYCATCH_CONSOLE ) )
{
// Console is down in windowed mode
IN_DeactivateMouse( );
}
else if( !cls.glconfig.isFullscreen && ( Key_GetCatcher( ) & KEYCATCH_CHATCONSOLE ) )
{
// Console is down in windowed mode
IN_DeactivateMouse( );
}
else if( !cls.glconfig.isFullscreen && loading )
{
// Loading in windowed mode
IN_DeactivateMouse( );
}
else if( !( SDL_GetWindowFlags( SDL_window ) & SDL_WINDOW_INPUT_FOCUS ) )
{
// Window not got focus
IN_DeactivateMouse( );
}
else
IN_ActivateMouse( );
// In case we had to delay actual restart of video system
if( ( vidRestartTime != 0 ) && ( vidRestartTime < Sys_Milliseconds( ) ) )
{
vidRestartTime = 0;
Cbuf_AddText( "vid_restart\n" );
}
}
开发者ID:Pan7,项目名称:ioq3df,代码行数:45,代码来源:sdl_input.c
示例9: FS_ExecAutoexec
/**
* \brief Execute autoexec script
*/
PUBLIC void FS_ExecAutoexec( void )
{
char *dir;
char name[ MAX_GAMEPATH ];
dir = Cvar_VariableString( "gamedir" );
if( *dir )
{
com_snprintf( name, sizeof( name ), "%s%c%s%cautoexec.cfg", fs_basedir->string, PATH_SEP, dir, PATH_SEP );
}
else
{
com_snprintf(name, sizeof(name), "%s%c%s%cautoexec.cfg", fs_basedir->string, PATH_SEP, BASE_DIRECTORY, PATH_SEP);
}
if( FS_FindFirst( name, 0, FA_DIR | FA_HIDDEN | FA_SYSTEM ) )
{
Cbuf_AddText( "exec autoexec.cfg\n" );
}
FS_FindClose();
}
开发者ID:MichaelLiebscher,项目名称:Wolfenstein3D_Redux,代码行数:25,代码来源:files.c
示例10: IN_Frame
void IN_Frame(void)
{
qboolean loading;
qboolean fullscreen;
IN_JoyMove();
IN_ProcessEvents();
// If not DISCONNECTED (main menu) or ACTIVE (in game), we're loading
loading = !!(cls.state != CA_DISCONNECTED && cls.state != CA_ACTIVE);
fullscreen = Cvar_VariableIntegerValue("r_fullscreen");
if (!fullscreen && (Key_GetCatcher() & KEYCATCH_CONSOLE))
{
// Console is down in windowed mode
IN_DeactivateMouse();
}
else if (!fullscreen && loading)
{
// Loading in windowed mode
IN_DeactivateMouse();
}
else if (!(SDL_GetAppState() & SDL_APPINPUTFOCUS))
{
// Window not got focus
IN_DeactivateMouse();
}
else
{
IN_ActivateMouse();
}
/* in case we had to delay actual restart of video system... */
if ((vidRestartTime != 0) && (vidRestartTime < Sys_Milliseconds()))
{
vidRestartTime = 0;
Cbuf_AddText("vid_restart");
}
}
开发者ID:GenaSG,项目名称:etlegacy,代码行数:39,代码来源:sdl_input.c
示例11: SCR_Init
/*
==================
SCR_Init
==================
*/
void SCR_Init( void )
{
if( scr_init ) return;
MsgDev( D_NOTE, "SCR_Init()\n" );
scr_centertime = Cvar_Get( "scr_centertime", "2.5", 0, "centerprint hold time" );
cl_levelshot_name = Cvar_Get( "cl_levelshot_name", "*black", 0, "contains path to current levelshot" );
cl_allow_levelshots = Cvar_Get( "allow_levelshots", "0", CVAR_ARCHIVE, "allow engine to use indivdual levelshots instead of 'loading' image" );
scr_loading = Cvar_Get( "scr_loading", "0", 0, "loading bar progress" );
scr_download = Cvar_Get( "scr_download", "0", 0, "downloading bar progress" );
cl_testlights = Cvar_Get( "cl_testlights", "0", 0, "test dynamic lights" );
cl_envshot_size = Cvar_Get( "cl_envshot_size", "256", CVAR_ARCHIVE, "envshot size of cube side" );
scr_dark = Cvar_Get( "v_dark", "0", 0, "starts level from dark screen" );
scr_viewsize = Cvar_Get( "viewsize", "120", CVAR_ARCHIVE, "screen size" );
// register our commands
Cmd_AddCommand( "timerefresh", SCR_TimeRefresh_f, "turn quickly and print rendering statistcs" );
Cmd_AddCommand( "skyname", CL_SetSky_f, "set new skybox by basename" );
Cmd_AddCommand( "viewpos", SCR_Viewpos_f, "prints current player origin" );
if( host.state != HOST_RESTART && !UI_LoadProgs( ))
{
Msg( "^1Error: ^7can't initialize MainUI.dll\n" ); // there is non fatal for us
if( !host.developer ) host.developer = 1; // we need console, because menu is missing
}
SCR_RegisterShaders ();
SCR_InitCinematic();
SCR_VidInit();
if( host.state != HOST_RESTART )
{
if( host.developer && Sys_CheckParm( "-toconsole" ))
Cbuf_AddText( "toggleconsole\n" );
else UI_SetActiveMenu( true );
}
scr_init = true;
}
开发者ID:bmk10,项目名称:sing-engine,代码行数:44,代码来源:cl_scrn.c
示例12: GLimp_EndFrame
/*
** GLimp_EndFrame
**
** Responsible for doing a swapbuffers and possibly for other stuff
** as yet to be determined. Probably better not to make this a GLimp
** function and instead do a call to GLimp_SwapBuffers.
*/
void GLimp_EndFrame (void)
{
// don't flip if drawing to front buffer
if ( Q_stricmp( r_drawBuffer->string, "GL_FRONT" ) != 0 )
{
SDL_GL_SwapBuffers();
}
if( r_fullscreen->modified )
{
qboolean fullscreen;
qboolean sdlToggled = qfalse;
SDL_Surface *s = SDL_GetVideoSurface( );
if( s )
{
// Find out the current state
if( s->flags & SDL_FULLSCREEN )
fullscreen = qtrue;
else
fullscreen = qfalse;
// Is the state we want different from the current state?
if( !!r_fullscreen->integer != fullscreen )
sdlToggled = SDL_WM_ToggleFullScreen( s );
else
sdlToggled = qtrue;
}
// SDL_WM_ToggleFullScreen didn't work, so do it the slow way
if( !sdlToggled )
Cbuf_AddText( "vid_restart" );
r_fullscreen->modified = qfalse;
}
// check logging
QGL_EnableLogging( (qboolean)r_logFile->integer ); // bk001205 - was ->value
}
开发者ID:martinez-zea,项目名称:localconflict,代码行数:46,代码来源:sdl_glimp.c
示例13: GFXPresetToggle
void GFXPresetToggle(qbool back) {
if (back) fps_mode--; else fps_mode++;
if (fps_mode < 0) fps_mode = mode_undef - 1;
if (fps_mode >= mode_undef) fps_mode = 0;
switch (GFXPreset()) {
#ifdef GLQUAKE
case mode_fastest: Cbuf_AddText ("exec cfg/gfx_gl_fast.cfg\n"); return;
case mode_higheyecandy: Cbuf_AddText ("exec cfg/gfx_gl_higheyecandy.cfg\n"); return;
case mode_faithful: Cbuf_AddText ("exec cfg/gfx_gl_faithful.cfg\n"); return;
case mode_eyecandy: Cbuf_AddText ("exec cfg/gfx_gl_eyecandy.cfg\n"); return;
#else
case mode_fastest: Cbuf_AddText ("exec cfg/gfx_sw_fast.cfg\n"); return;
case mode_default: Cbuf_AddText ("exec cfg/gfx_sw_default.cfg\n"); return;
#endif
}
}
开发者ID:jogi1,项目名称:camquake,代码行数:17,代码来源:menu_options.c
示例14: qtvlist_joinfromqtv_cmd
void qtvlist_joinfromqtv_cmd(void)
{
/* FIXME: Make this prettier */
char addr[512];
char httpaddr[512];
char gameaddress[512];
char *currstream, *server;
currstream = CL_QTV_GetCurrentStream();
if (currstream == NULL) {
Com_Printf("Not connected to a QTV, can't join\n");
return;
}
strlcpy(&addr[0], currstream, sizeof(addr));
/* Bleh, transformation of [email protected]:port to http://server:port/watch.qtv?sid=id */
server = strchr(&addr[0], '@');
if (server == NULL) {
Com_Printf("error: wrong format on input\n");
return;
}
*server++ = 0;
snprintf(&httpaddr[0], sizeof(httpaddr), "http://%s/watch.qtv?sid=%s", server, &addr[0]);
if (SDL_TryLockMutex(qtvlist_mutex) != 0) {
Com_Printf("qtvlist is being updated, please try again soon\n");
return;
}
qtvlist_get_gameaddress((const char*)&httpaddr[0], &gameaddress[0], sizeof(gameaddress));
SDL_UnlockMutex(qtvlist_mutex);
if (gameaddress[0] != 0) {
Cbuf_AddText(va("connect %s\n", &gameaddress[0]));
} else {
Com_Printf("No game address found for this QTV stream\n");
}
}
开发者ID:DavidWiberg,项目名称:ezquake-source,代码行数:38,代码来源:EX_qtvlist.c
示例15: FChecks_CheckFRulesetRequest
static qbool FChecks_CheckFRulesetRequest (const char *s)
{
// format of the reply:
// [nick: ]
// [padding] - so that "nick: " + padding is 17 chars long
// [ip address] - padded with spaces to 21 chars
// - this fits to 38 chars which is length of line with conwidth 320
// [space]
// [client version] - padded to 16 chars
// [ruleset name]
// [ruleset addition]
// - these 4 should be less than 38 chars so that reply does never take up more than 2 lines
char *fServer;
const char *features;
char *emptystring = "";
char *brief_version = "ezq" VERSION_NUMBER;
char *ruleset = Rulesets_Ruleset();
size_t name_len = strlen(cl.players[cl.playernum].name);
size_t pad_len = 15 - min(name_len, 15);
if (cl.spectator || (f_ruleset_reply_time && cls.realtime - f_ruleset_reply_time < 20))
return false;
if (Util_F_Match(s, "f_ruleset")) {
features = FChecks_RulesetAdditionString();
fServer = FChecks_FServerResponse_Text();
if (!fServer) {
fServer = "server-na";
}
Cbuf_AddText(va("say \"%*s%21s %16s %s%s\"\n",
pad_len, emptystring, fServer, brief_version, ruleset, features));
f_ruleset_reply_time = cls.realtime;
return true;
}
return false;
}
开发者ID:qqshka,项目名称:ezquake-source,代码行数:38,代码来源:fchecks.c
示例16: Daisy_main
int Daisy_main ( void )
{
char cmdline[] = "+set sv_pure 0 +set vm_ui 0 +set vm_game 0 +set vm_cgame 0 +set fs_basepath /media/usd";
cvar_t *cv = NULL;
char cmd_rundemo[100];
Sys_SetDefaultCDPath("/media/usd");
//saved_euid = geteuid();
// Clear the queues
memset( &eventQue[0], 0, MAX_QUED_EVENTS*sizeof(sysEvent_t) );
memset( &sys_packetReceived[0], 0, MAX_MSGLEN*sizeof(byte) );
// Initialize game
Com_Init(cmdline);
// Start game with running demo
#if 0
cv = Cvar_Get("rundemo", "0", 0);
Cvar_Set("rundemo", "demo1.dm_68");
if (strcmp(cv->string, "0")) {
memset(cmd_rundemo, 0, sizeof(cmd_rundemo));
sprintf(cmd_rundemo, "demo %s", cv->string, sizeof(cmd_rundemo));
// Cbuf_AddText("demo FOUR.DM_68");
Cbuf_AddText(cmd_rundemo);
log_printf(LOG_INFO, " -- starting execution --- ");
Cbuf_Execute();`
log_printf(LOG_INFO, " -- execution done --- ");
}
#endif
while (1) {
Com_Frame( );
}
}
开发者ID:LoudHoward,项目名称:Quake3,代码行数:38,代码来源:qnx_main.c
示例17: Cbuf_InsertText
// When a command wants to issue other commands immediately, the text is
// inserted at the beginning of the buffer, before any remaining unexecuted
// commands.
void Cbuf_InsertText(char *text)
{
int addLen = Q_strlen(text);
int currLen = cmd_text.cursize;
if (cmd_text.cursize + addLen >= cmd_text.maxsize)
{
Con_Printf(__FUNCTION__ ": overflow\n");
return;
}
#ifdef REHLDS_FIXES
if (currLen)
Q_memmove(cmd_text.data + addLen, cmd_text.data, currLen);
Q_memcpy(cmd_text.data, text, addLen);
cmd_text.cursize += addLen;
#else
char *temp = NULL;
if (currLen)
{
temp = (char *)Z_Malloc(currLen); // TODO: Optimize: better use memmove without need for a temp buffer
Q_memcpy(temp, cmd_text.data, currLen);
SZ_Clear(&cmd_text);
}
Cbuf_AddText(text);
if (currLen)
{
SZ_Write(&cmd_text, temp, currLen);
Z_Free(temp);
}
#endif // REHLDS_FIXES
}
开发者ID:LeninChan,项目名称:rehlds,代码行数:41,代码来源:cmd.cpp
示例18: Host_EndGame
/* <3617e> ../engine/host.c:201 */
NOXREF void Host_EndGame(const char *message, ...)
{
int oldn;
va_list argptr;
char string[1024];
va_start(argptr,message);
Q_vsnprintf(string, sizeof(string), message, argptr);
va_end(argptr);
Con_DPrintf("Host_EndGame: %s\n", string);
oldn = g_pcls.demonum;
if (g_psv.active)
Host_ShutdownServer(FALSE);
g_pcls.demonum = oldn;
if (!g_pcls.state)
{
Sys_Error("Host_EndGame: %s\n", string);
}
if (oldn != -1)
{
CL_Disconnect_f();
g_pcls.demonum = oldn;
Host_NextDemo();
longjmp(host_enddemo, 1);
}
CL_Disconnect();
Cbuf_AddText("cd stop\n");
Cbuf_Execute();
longjmp(host_abortserver, 1);
}
开发者ID:mefisto2009,项目名称:rehlds,代码行数:38,代码来源:host.cpp
示例19: Netchan_CheckForCompletion
/*
==============================
Netchan_CheckForCompletion
==============================
*/
void Netchan_CheckForCompletion( netchan_t *chan, int stream, int intotalbuffers )
{
int c, id;
int size;
fragbuf_t *p;
size = 0;
c = 0;
p = chan->incomingbufs[stream];
if( !p ) return;
while( p )
{
size += BF_GetNumBytesWritten( &p->frag_message );
c++;
id = FRAG_GETID( p->bufferid );
if( id != c )
{
if( chan->sock == NS_CLIENT )
{
MsgDev( D_ERROR, "Lost/dropped fragment would cause stall, retrying connection\n" );
Cbuf_AddText( "reconnect\n" );
}
}
p = p->next;
}
// received final message
if( c == intotalbuffers )
{
chan->incomingready[stream] = true;
MsgDev( D_NOTE, "\nincoming is complete %i bytes waiting\n", size );
}
}
开发者ID:ShaunNoWay,项目名称:xash3d,代码行数:42,代码来源:net_chan.c
示例20: IN_Frame
void IN_Frame (void) {
IN_JoyMove( );
IN_ProcessEvents( );
if( !cls.glconfig.isFullscreen && ( Key_GetCatcher( ) & KEYCATCH_CONSOLE ) )
{
// Console is down in windowed mode
IN_DeactivateMouse( );
}
else if( !( SDL_GetWindowFlags( SDL_window ) & SDL_WINDOW_INPUT_FOCUS ) )
{
// Window not got focus
IN_DeactivateMouse( );
}
else
IN_ActivateMouse( );
// In case we had to delay actual restart of video system
if( ( vidRestartTime != 0 ) && ( vidRestartTime < Sys_Milliseconds( ) ) )
{
vidRestartTime = 0;
Cbuf_AddText( "vid_restart\n" );
}
}
开发者ID:entdark,项目名称:jk2mv,代码行数:24,代码来源:sdl_input.cpp
注:本文中的Cbuf_AddText函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论