mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 13:50:03 +00:00 
			
		
		
		
	service/apt: Implement soft reset & CloseApplication
This commit is contained in:
		
							parent
							
								
									ca701e2610
								
							
						
					
					
						commit
						ad6b140cb0
					
				
					 9 changed files with 160 additions and 12 deletions
				
			
		|  | @ -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()); | ||||
|  |  | |||
|  | @ -1400,7 +1400,6 @@ void GMainWindow::UpdateStatusBar() { | |||
| } | ||||
| 
 | ||||
| void GMainWindow::OnCoreError(Core::System::ResultStatus result, std::string details) { | ||||
|     QMessageBox::StandardButton answer; | ||||
|     QString status_message; | ||||
| 
 | ||||
|     QString title, message; | ||||
|  | @ -1435,9 +1434,11 @@ void GMainWindow::OnCoreError(Core::System::ResultStatus result, std::string det | |||
|     message_box.setIcon(QMessageBox::Icon::Critical); | ||||
|     QPushButton* continue_button = message_box.addButton(tr("Continue"), QMessageBox::RejectRole); | ||||
|     QPushButton* abort_button = message_box.addButton(tr("Abort"), QMessageBox::AcceptRole); | ||||
|     message_box.exec(); | ||||
|     if (result != Core::System::ResultStatus::ShutdownRequested) | ||||
|         message_box.exec(); | ||||
| 
 | ||||
|     if (message_box.clickedButton() == abort_button) { | ||||
|     if (result == Core::System::ResultStatus::ShutdownRequested || | ||||
|         message_box.clickedButton() == abort_button) { | ||||
|         if (emu_thread) { | ||||
|             ShutdownGame(); | ||||
|         } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue