| 916 | //============================================================================= |
| 917 | |
| 918 | void M_Init (void) |
| 919 | { |
| 920 | try |
| 921 | { |
| 922 | M_ParseMenuDefs(); |
| 923 | GC::AddMarkerFunc(M_MarkMenus); |
| 924 | } |
| 925 | catch (CVMAbortException &err) |
| 926 | { |
| 927 | menuDelegate = nullptr; |
| 928 | err.MaybePrintMessage(); |
| 929 | Printf(PRINT_NONOTIFY | PRINT_BOLD, "%s", err.stacktrace.GetChars()); |
| 930 | I_FatalError("Failed to initialize menus"); |
| 931 | } |
| 932 | catch (...) |
| 933 | { |
| 934 | menuDelegate = nullptr; |
| 935 | throw; |
| 936 | } |
| 937 | M_CreateMenus(); |
| 938 | } |
| 939 | |
| 940 | |
| 941 | //============================================================================= |
no test coverage detected