- fixed: M_Init needs to catch VM exceptions from MENUDEF init to print out meaningful error messages in case something goes wrong.

This commit is contained in:
Christoph Oelckers 2017-03-04 10:58:34 +01:00
parent fd4727e701
commit a7fdf4b90d

View file

@ -796,7 +796,16 @@ void M_ClearMenus()
void M_Init (void)
{
M_ParseMenuDefs();
try
{
M_ParseMenuDefs();
}
catch (CVMAbortException &err)
{
err.MaybePrintMessage();
Printf("%s", err.stacktrace);
I_FatalError("Failed to initialize menus");
}
M_CreateMenus();
}