Implement API to terminate current emulator session from within main
emulator thread (ie soft power off).
This commit is contained in:
parent
8f04c11a76
commit
00034c1ece
10 changed files with 39 additions and 2 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in a new issue