mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-10 14:51:51 +00:00
- 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:
parent
fd4727e701
commit
a7fdf4b90d
1 changed files with 10 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue