forked from len0rd/rockbox
sim/sdlapp: Do not quit immediately on panicf, but wait for quit.
Change-Id: I2f0b4b560f00a43ad4b240911e4c30a162deb6e3
This commit is contained in:
parent
7272a95b9c
commit
3a86352a5d
3 changed files with 15 additions and 1 deletions
|
|
@ -196,6 +196,14 @@ static int sdl_event_thread(void * param)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static bool quitting;
|
||||
|
||||
void sdl_sys_quit(void)
|
||||
{
|
||||
quitting = true;
|
||||
sys_poweroff();
|
||||
}
|
||||
|
||||
void power_off(void)
|
||||
{
|
||||
/* Shut down SDL event loop */
|
||||
|
|
@ -270,6 +278,11 @@ void system_reboot(void)
|
|||
|
||||
void system_exception_wait(void)
|
||||
{
|
||||
if (evt_thread)
|
||||
{
|
||||
while (!quitting)
|
||||
SDL_Delay(10);
|
||||
}
|
||||
system_reboot();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue