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

Method init

Engine/source/platformWin32/winWindow.cpp:286–305  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

284
285//--------------------------------------
286void Platform::init()
287{
288 Con::printf("Initializing platform...");
289
290 // Set the platform variable for the scripts
291 Con::setVariable( "$platform", "windows" );
292
293 WinConsole::create();
294
295 if ( !WinConsole::isEnabled() )
296 Input::init();
297
298 InitInput(); // in case DirectInput falls through
299
300 installRedBookDevices();
301
302 sgDoubleByteEnabled = GetSystemMetrics( SM_DBCSENABLED );
303 sgQueueEvents = true;
304 Con::printf("Done");
305}
306
307//--------------------------------------
308void Platform::shutdown()

Callers

nothing calls this directly

Calls 6

printfFunction · 0.85
setVariableFunction · 0.85
isEnabledFunction · 0.85
installRedBookDevicesFunction · 0.85
InitInputFunction · 0.70
initFunction · 0.50

Tested by

no test coverage detected