New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Do not allow to unpause after fatal error occured in emulation #10833
Conversation
You could also take a look at the Emu.Pause issue i made recently |
@Megamouse Done. |
I think you can just remove the bool return because we do not use it anywhere |
btw, you can't use my commit. it doesn't work |
It's needed because this function can be called from any thread, thus the return value tells whether or not the current thread is the one which paused so it can resume later. A bit like a mutex.try_lock() operation. |
Lgtm |
Added a "frozen" paused state which cannot be resumed from, used with fatal errors and special executables loading modes. Previously the user could resume emulation after a fatal error occured, but it used to be a top secret flaw only developer knew. After #10830 it became less of a secret...