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

Method preShutdown

Engine/source/app/mainLoop.cpp:384–402  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

382}
383
384void StandardMainLoop::preShutdown()
385{
386#ifdef TORQUE_TOOLS
387 // Tools are given a chance to do pre-quit processing
388 // - This is because for tools we like to do things such
389 // as prompting to save changes before shutting down
390 // and onExit is packaged which means we can't be sure
391 // where in the shutdown namespace chain we are when using
392 // onExit since some components of the tools may already be
393 // destroyed that may be vital to saving changes to avoid
394 // loss of work [1/5/2007 justind]
395 if( Con::isFunction("onPreExit") )
396 Con::executef( "onPreExit");
397#endif
398
399 //exec the script onExit() function
400 if ( Con::isFunction( "onExit" ) )
401 Con::executef("onExit");
402}
403
404bool StandardMainLoop::handleCommandLine( S32 argc, const char **argv )
405{

Callers

nothing calls this directly

Calls 2

isFunctionFunction · 0.85
executefFunction · 0.85

Tested by

no test coverage detected