diff --git a/src/Components/Modules/Menus.cpp b/src/Components/Modules/Menus.cpp index 44f58e10..54857572 100644 --- a/src/Components/Modules/Menus.cpp +++ b/src/Components/Modules/Menus.cpp @@ -870,24 +870,24 @@ namespace Components // Define custom menus here Add("ui_mp/changelog.menu"); - Add("ui_mp/theater_menu.menu"); - Add("ui_mp/pc_options_multi.menu"); + Add("ui_mp/iw4x_credits.menu"); + Add("ui_mp/menu_first_launch.menu"); + Add("ui_mp/mod_download_popmenu.menu"); Add("ui_mp/pc_options_game.menu"); Add("ui_mp/pc_options_gamepad.menu"); + Add("ui_mp/pc_options_multi.menu"); + Add("ui_mp/popup_customclan.menu"); + Add("ui_mp/popup_customtitle.menu"); + Add("ui_mp/popup_friends.menu"); + Add("ui_mp/resetclass.menu"); + Add("ui_mp/security_increase_popmenu.menu"); + Add("ui_mp/startup_messages.menu"); Add("ui_mp/stats_reset.menu"); Add("ui_mp/stats_unlock.menu"); - Add("ui_mp/security_increase_popmenu.menu"); - Add("ui_mp/mod_download_popmenu.menu"); - Add("ui_mp/popup_friends.menu"); - Add("ui_mp/menu_first_launch.menu"); - Add("ui_mp/startup_messages.menu"); - Add("ui_mp/iw4x_credits.menu"); - Add("ui_mp/resetclass.menu"); - Add("ui_mp/popup_customtitle.menu"); - Add("ui_mp/popup_customclan.menu"); + Add("ui_mp/theater_menu.menu"); } - Menus::~Menus() + void Menus::preDestroy() { // Let Windows handle the memory leaks for you! Menus::FreeEverything(); diff --git a/src/Components/Modules/Menus.hpp b/src/Components/Modules/Menus.hpp index 793cc817..bdd8974b 100644 --- a/src/Components/Modules/Menus.hpp +++ b/src/Components/Modules/Menus.hpp @@ -8,7 +8,8 @@ namespace Components { public: Menus(); - ~Menus(); + + void preDestroy() override; static void FreeEverything();