MCPcopy Create free account
hub / github.com/TheForceEngine/TheForceEngine / exitToMenu

Function exitToMenu

TheForceEngine/TFE_FrontEndUI/frontEndUi.cpp:516–544  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

514 }
515
516 void exitToMenu()
517 {
518 s_menuRetState = APP_STATE_MENU;
519 s_drawNoGameDataMsg = false;
520 s_appState = APP_STATE_EXIT_TO_MENU;
521 s_selectedModCmd[0] = 0;
522 s_relativeMode = false;
523 TFE_Input::enableRelativeMode(s_relativeMode);
524 TFE_ExternalData::getExternalLogics()->actorLogics.clear(); // clear custom logics
525 TFE_ExternalData::clearExternalWeapons(); // clear weapons
526 TFE_ExternalData::clearExternalProjectiles(); // clear projectiles
527 TFE_ExternalData::clearExternalEffects(); // clear effects
528 TFE_ExternalData::clearExternalPickups(); // clear pickups
529
530 // Restore the default messages if you are exiting a mod.
531 if (TFE_System::modMessagesLoaded())
532 {
533 TFE_System::restoreDefaultMessages();
534 }
535
536 if (TFE_Settings::getSystemSettings()->returnToModLoader && s_modLoaded)
537 {
538 menuItem_Mods();
539 }
540 else
541 {
542 s_subUI = FEUI_NONE;
543 }
544 }
545
546 void drawFps(s32 windowWidth)
547 {

Callers 4

loadReplayWrapperFunction · 0.85
endReplayFunction · 0.85
mission_mainTaskFuncFunction · 0.85
agentMenu_updateFunction · 0.85

Calls 11

enableRelativeModeFunction · 0.85
getExternalLogicsFunction · 0.85
clearExternalWeaponsFunction · 0.85
clearExternalProjectilesFunction · 0.85
clearExternalEffectsFunction · 0.85
clearExternalPickupsFunction · 0.85
modMessagesLoadedFunction · 0.85
restoreDefaultMessagesFunction · 0.85
getSystemSettingsFunction · 0.85
menuItem_ModsFunction · 0.85
clearMethod · 0.45

Tested by

no test coverage detected