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

@ -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);