MCPcopy Create free account
hub / github.com/ZDoom/Raze / M_Init

Function M_Init

source/common/menu/menu.cpp:918–938  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

916//=============================================================================
917
918void 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//=============================================================================

Callers 1

RunGameFunction · 0.85

Calls 7

M_ParseMenuDefsFunction · 0.85
AddMarkerFuncFunction · 0.85
PrintfFunction · 0.85
I_FatalErrorFunction · 0.85
M_CreateMenusFunction · 0.85
MaybePrintMessageMethod · 0.80
GetCharsMethod · 0.45

Tested by

no test coverage detected