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

Method shutdown

Engine/source/app/mainLoop.cpp:330–378  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

328}
329
330void StandardMainLoop::shutdown()
331{
332 // Stop the Input Event Manager
333 INPUTMGR->stop();
334
335 delete tm;
336 preShutdown();
337
338 // Unregister the module database.
339 ModuleDatabase.unregisterObject();
340
341 // Unregister the asset database.
342 AssetDatabase.unregisterObject();
343
344 // Shut down modules.
345
346 EngineModuleManager::shutdownSystem();
347
348 ThreadPool::GlobalThreadPool::deleteSingleton();
349
350#ifdef TORQUE_ENABLE_VFS
351 closeEmbeddedVFSArchive();
352#endif
353
354 RedBook::destroy();
355
356 Platform::shutdown();
357
358#if defined( _XBOX ) || defined( TORQUE_OS_MAC )
359 DebugOutputConsumer::destroy();
360#endif
361
362 NetStringTable::destroy();
363 Con::shutdown();
364
365 _StringTable::destroy();
366 FrameAllocator::destroy();
367 Net::shutdown();
368 Sampler::destroy();
369
370 ManagedSingleton< ThreadManager >::deleteSingleton();
371
372 // asserts should be destroyed LAST
373 PlatformAssert::destroy();
374
375#if defined( TORQUE_DEBUG ) && !defined( TORQUE_DISABLE_MEMORY_MANAGER )
376 Memory::validate();
377#endif
378}
379
380void StandardMainLoop::preShutdown()
381{

Callers 3

onExitFunction · 0.45
onExitFunction · 0.45
SDL_DBus_QuitFunction · 0.45

Calls 6

closeEmbeddedVFSArchiveFunction · 0.85
destroyFunction · 0.85
validateFunction · 0.85
shutdownFunction · 0.50
stopMethod · 0.45
unregisterObjectMethod · 0.45

Tested by

no test coverage detected