mirror of
https://github.com/ZDoom/qzdoom-gpl.git
synced 2025-01-24 15:40:59 +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)
|
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();
|
M_CreateMenus();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue