mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2025-06-14 04:07:57 -05:00
Merge pull request #8605 from devsnek/graceful-shutdown
let games gracefully exit
This commit is contained in:
@ -79,6 +79,11 @@ void EmuThread::run() {
|
||||
|
||||
system.GetCpuManager().OnGpuReady();
|
||||
|
||||
system.RegisterExitCallback([this]() {
|
||||
stop_source.request_stop();
|
||||
SetRunning(false);
|
||||
});
|
||||
|
||||
// Holds whether the cpu was running during the last iteration,
|
||||
// so that the DebugModeLeft signal can be emitted before the
|
||||
// next execution step
|
||||
|
Reference in New Issue
Block a user