File tree Expand file tree Collapse file tree 3 files changed +3
-20
lines changed
Expand file tree Collapse file tree 3 files changed +3
-20
lines changed Original file line number Diff line number Diff line change @@ -2219,12 +2219,6 @@ static bool CL_InitRef()
22192219 refimport_t ri;
22202220 refexport_t *ret;
22212221
2222- ri.Cmd_AddCommand = Cmd_AddCommand;
2223- ri.Cmd_RemoveCommand = Cmd_RemoveCommand;
2224- ri.Cmd_Argc = Cmd_Argc;
2225- ri.Cmd_Argv = Cmd_Argv;
2226- ri.Cmd_QuoteString = Cmd_QuoteString;
2227-
22282222 ri.Milliseconds = Sys::Milliseconds;
22292223 ri.RealTime = Com_RealTime;
22302224
Original file line number Diff line number Diff line change @@ -293,14 +293,6 @@ struct refimport_t
293293 void *( *Hunk_AllocateTempMemory )( int size );
294294 void ( *Hunk_FreeTempMemory )( void *block );
295295
296- void ( *Cmd_AddCommand )( const char *name, void ( *cmd )() );
297- void ( *Cmd_RemoveCommand )( const char *name );
298-
299- int ( *Cmd_Argc )();
300- const char *( *Cmd_Argv )( int i );
301-
302- const char *( *Cmd_QuoteString )( const char *text );
303-
304296 // a -1 return means the file does not exist
305297 // nullptr can be passed for buf to just determine existence
306298 int ( *FS_ReadFile )( const char *name, void **buf );
Original file line number Diff line number Diff line change @@ -500,10 +500,9 @@ void GLimp_Shutdown()
500500 ResetStruct ( glState );
501501}
502502
503- static void GLimp_Minimize ()
504- {
505- SDL_MinimizeWindow ( window );
506- }
503+ static Cmd::LambdaCmd minimizeCmd (
504+ " minimize" , " minimize the window" ,
505+ []( const Cmd::Args & ) { SDL_MinimizeWindow ( window ); });
507506
508507static void SetSwapInterval ( int swapInterval )
509508{
@@ -2655,8 +2654,6 @@ bool GLimp_Init()
26552654 Cvar::Latch ( workaround_glExtension_missingArbFbo_useExtFbo );
26562655 Cvar::Latch ( workaround_glHardware_intel_useFirstProvokinVertex );
26572656
2658- ri.Cmd_AddCommand ( " minimize" , GLimp_Minimize );
2659-
26602657 /* Enable S3TC on Mesa even if libtxc-dxtn is not available
26612658 The environment variables is currently always set,
26622659 it should do nothing with other systems and drivers.
You can’t perform that action at this time.
0 commit comments