service/apt: Implement soft reset & CloseApplication

This commit is contained in:
zhupengfei 2018-07-18 20:07:00 +08:00
parent ca701e2610
commit ad6b140cb0
No known key found for this signature in database
GPG key ID: 85B82A3E62174206
9 changed files with 160 additions and 12 deletions

View file

@ -35,6 +35,12 @@ void EmuThread::run() {
emit DebugModeLeft();
Core::System::ResultStatus result = Core::System::GetInstance().RunLoop();
if (result == Core::System::ResultStatus::ShutdownRequested) {
// Notify frontend we shutdown
emit ErrorThrown(result, "");
// End emulation execution
break;
}
if (result != Core::System::ResultStatus::Success) {
this->SetRunning(false);
emit ErrorThrown(result, Core::System::GetInstance().GetStatusDetails());