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
|
|
@ -223,6 +223,14 @@ int mainthread(void* param)
|
|||
return TRUE;
|
||||
}
|
||||
|
||||
void stop_emulation_now(void)
|
||||
{
|
||||
/*Deduct a sufficiently large number of cycles that no instructions will
|
||||
run before the main thread is terminated*/
|
||||
cycles -= 99999999;
|
||||
wx_stop_emulation_now(ghwnd);
|
||||
}
|
||||
|
||||
int dir_exists(char* path)
|
||||
{
|
||||
return wx_dir_exists(path);
|
||||
|
|
|
|||
Loading…
Reference in a new issue