winport - add some kind of hack to exit the emulator better whenever a lua script is running

This commit is contained in:
zeromus 2018-10-03 03:13:48 -04:00
parent 0406828da2
commit d6babce9b7
1 changed files with 2 additions and 0 deletions

View File

@ -1800,6 +1800,8 @@ class WinDriver : public BaseDriver
CheckMessages();
if(finished) ExitProcess(0); //I guess.... fixes hangs when exiting while a lua script is running
if(!romloaded)
return ESTEP_DONE;