initialize Torque 3D including argument handling
| 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() |
no test coverage detected