| 382 | } |
| 383 | |
| 384 | void 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 | |
| 404 | bool StandardMainLoop::handleCommandLine( S32 argc, const char **argv ) |
| 405 | { |
nothing calls this directly
no test coverage detected