Added some basic error handling in main

This commit is contained in:
Dimitris Panokostas 2020-07-04 14:53:43 +02:00
parent 673e14ac60
commit 0eddb13ae5

View file

@ -895,7 +895,15 @@ static void do_start_program(void)
inputdevice_updateconfig(&changed_prefs, &currprefs);
if (quit_program >= 0)
quit_program = UAE_RESET;
m68k_go(1);
try
{
m68k_go(1);
}
catch (...)
{
write_log("An exception was thrown while running m68k_go!\n");
}
}
static void start_program(void)