I found the problem with my wrapper last night (although haven't fixed it yet, but you can all expect an update soon), and its nothing to do with MameWah, so you can breathe easy on that one.
I was using it for z26 (the FE modified one) to quote the rom name (possibly a feature for the next MameWah ?). Well the FE version of z26 picks up the ESC key itself and exists. This can occur before my wrapper detects the ESC key, hence z26 quits, and my wrapper is left waiting. Another ESC and it might exit (I didn't test that), but we don't want to have to do that.
The wrapper is currently configurable as to whether it hangs around attempting to kill the emu (so I could have turned that feature off, and there would then be no problem), but even still, I would like it to be a bit more intelligent.
The fix - 2 parts:
(1) Reduce the sleep time while in the "check for the exit key loop". Actually I will reduce the default, and expose the fact that this value is configurable (always has been), hence can be "tweaked" if required.
(2) Whilst in the "check for the exit key loop", I will also check if the emu is still running. If not, the wrapper will quit.
That should sort it.
Hopefully a new version will be out int he next few days (I will probably finish coding it up whilst at work today).
Cheers
Martin
