Implement API to terminate current emulator session from within main

emulator thread (ie soft power off).
This commit is contained in:
SarahW 2020-10-31 22:06:09 +00:00
commit 00034c1ece
10 changed files with 39 additions and 2 deletions

View file

@ -449,6 +449,13 @@ void wx_stop_emulation(void* window)
wxQueueEvent((wxWindow*)window, event);
}
void wx_stop_emulation_now(void* window)
{
wxCommandEvent* event = new wxCommandEvent(WX_STOP_EMULATION_NOW_EVENT, wxID_ANY);
event->SetEventObject((wxWindow*)window);
wxQueueEvent((wxWindow*)window, event);
}
int wx_yield()
{
return wxYield();