Added some basic error handling in main
This commit is contained in:
parent
673e14ac60
commit
0eddb13ae5
1 changed files with 9 additions and 1 deletions
10
src/main.cpp
10
src/main.cpp
|
@ -895,7 +895,15 @@ static void do_start_program(void)
|
||||||
inputdevice_updateconfig(&changed_prefs, &currprefs);
|
inputdevice_updateconfig(&changed_prefs, &currprefs);
|
||||||
if (quit_program >= 0)
|
if (quit_program >= 0)
|
||||||
quit_program = UAE_RESET;
|
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)
|
static void start_program(void)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue