MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / init

Method init

Engine/source/platformPOSIX/POSIXMain.cpp:36–64  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

34
35//------------------------------------------------------------------------------
36void Platform::init()
37{
38 StdConsole::create();
39 stdConsole->enable(true);
40
41 // init process control stuff
42 ProcessControlInit();
43
44 Con::printf("Initializing platform...");
45
46 // Set the platform variable for the scripts
47 Con::setVariable( "$platform", "x86UNIX" );
48#if defined(__linux__)
49 Con::setVariable( "$platformUnixType", "Linux" );
50#elif defined(__OpenBSD__)
51 Con::setVariable( "$platformUnixType", "OpenBSD" );
52#else
53 Con::setVariable( "$platformUnixType", "Unknown" );
54#endif
55
56 Input::init();
57
58 //installRedBookDevices();
59
60#ifndef TORQUE_DEDICATED
61 // if we're not dedicated do more initialization
62 InitWindowingSystem();
63#endif
64}
65
66//------------------------------------------------------------------------------
67void Platform::shutdown()

Callers

nothing calls this directly

Calls 6

ProcessControlInitFunction · 0.85
printfFunction · 0.85
setVariableFunction · 0.85
InitWindowingSystemFunction · 0.85
initFunction · 0.50
enableMethod · 0.45

Tested by

no test coverage detected