MCPcopy Create free account
hub / github.com/dhewm/dhewm3 / Init

Method Init

neo/framework/Console.cpp:382–401  ·  view source on GitHub ↗

============== idConsoleLocal::Init ============== */

Source from the content-addressed store, hash-verified

380==============
381*/
382void idConsoleLocal::Init( void ) {
383 int i;
384
385 keyCatching = false;
386
387 lastKeyEvent = -1;
388 nextKeyEvent = CONSOLE_FIRSTREPEAT;
389
390 consoleField.Clear();
391
392 consoleField.SetWidthInChars( LINE_WIDTH );
393
394 for ( i = 0 ; i < COMMAND_HISTORY ; i++ ) {
395 historyEditLines[i].Clear();
396 historyEditLines[i].SetWidthInChars( LINE_WIDTH );
397 }
398
399 cmdSystem->AddCommand( "clear", Con_Clear_f, CMD_FL_SYSTEM, "clears the console" );
400 cmdSystem->AddCommand( "conDump", Con_Dump_f, CMD_FL_SYSTEM, "dumps the console text to a file" );
401}
402
403/*
404==============

Callers

nothing calls this directly

Calls 3

SetWidthInCharsMethod · 0.80
ClearMethod · 0.45
AddCommandMethod · 0.45

Tested by

no test coverage detected