MCPcopy Create free account
hub / github.com/GarageGames/Torque3D / torque_engineinit

Function torque_engineinit

Engine/source/cinterface/cinterface.cpp:57–91  ·  view source on GitHub ↗

initialize Torque 3D including argument handling

Source from the content-addressed store, hash-verified

55
56 // initialize Torque 3D including argument handling
57 S32 torque_engineinit(S32 argc, const char **argv)
58 {
59
60#if defined( TORQUE_MINIDUMP ) && defined( TORQUE_RELEASE )
61 __try {
62#endif
63
64 LinkConsoleFunctions = true;
65
66#if !defined(TORQUE_OS_XENON) && !defined(TORQUE_OS_PS3) && defined(_MSC_VER)
67 createFontInit();
68#endif
69
70 // Initialize the subsystems.
71 StandardMainLoop::init();
72
73 // Handle any command line args.
74 if(!StandardMainLoop::handleCommandLine(argc, argv))
75 {
76 Platform::AlertOK("Error", "Failed to initialize game, shutting down.");
77 return false;
78 }
79
80#if defined( TORQUE_MINIDUMP ) && defined( TORQUE_RELEASE )
81 }
82
83 __except( CreateMiniDump(GetExceptionInformation()) )
84 {
85 _exit(0);
86 }
87#endif
88
89 return true;
90
91 }
92
93 // tick Torque 3D's main loop
94 S32 torque_enginetick()

Callers 4

InitTorque3DFunction · 0.85
InitTorque3DFunction · 0.85
torque_unixmainFunction · 0.85
TorqueMainFunction · 0.85

Calls 3

createFontInitFunction · 0.85
CreateMiniDumpFunction · 0.85
initFunction · 0.50

Tested by

no test coverage detected