|
|
@ -127,6 +127,7 @@ void Sys_PrintUsage( void ) |
|
|
|
O("-noenginejoy ", "disable engine builtin joystick support") |
|
|
|
O("-noenginejoy ", "disable engine builtin joystick support") |
|
|
|
O("-noenginemouse ", "disable engine builtin mouse support") |
|
|
|
O("-noenginemouse ", "disable engine builtin mouse support") |
|
|
|
O("-nosound ", "disable sound output") |
|
|
|
O("-nosound ", "disable sound output") |
|
|
|
|
|
|
|
O("-timedemo ", "run timedemo and exit") |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
"\nPlatform-specific options:\n" |
|
|
|
"\nPlatform-specific options:\n" |
|
|
@ -1158,6 +1159,7 @@ Host_Main |
|
|
|
int EXPORT Host_Main( int argc, char **argv, const char *progname, int bChangeGame, pfnChangeGame func ) |
|
|
|
int EXPORT Host_Main( int argc, char **argv, const char *progname, int bChangeGame, pfnChangeGame func ) |
|
|
|
{ |
|
|
|
{ |
|
|
|
static double oldtime, newtime; |
|
|
|
static double oldtime, newtime; |
|
|
|
|
|
|
|
string demoname; |
|
|
|
|
|
|
|
|
|
|
|
host.starttime = Sys_DoubleTime(); |
|
|
|
host.starttime = Sys_DoubleTime(); |
|
|
|
|
|
|
|
|
|
|
@ -1254,6 +1256,9 @@ int EXPORT Host_Main( int argc, char **argv, const char *progname, int bChangeGa |
|
|
|
Cbuf_ExecStuffCmds(); // execute stuffcmds (commandline)
|
|
|
|
Cbuf_ExecStuffCmds(); // execute stuffcmds (commandline)
|
|
|
|
SCR_CheckStartupVids(); // must be last
|
|
|
|
SCR_CheckStartupVids(); // must be last
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if( Sys_GetParmFromCmdLine( "-timedemo", demoname )) |
|
|
|
|
|
|
|
Cbuf_AddTextf( "timedemo %s\n", demoname ); |
|
|
|
|
|
|
|
|
|
|
|
oldtime = Sys_DoubleTime() - 0.1; |
|
|
|
oldtime = Sys_DoubleTime() - 0.1; |
|
|
|
|
|
|
|
|
|
|
|
if( Host_IsDedicated( )) |
|
|
|
if( Host_IsDedicated( )) |
|
|
|