mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 13:50:03 +00:00 
			
		
		
		
	qt: shutdown system if error
This commit is contained in:
		
							parent
							
								
									c59bdecd23
								
							
						
					
					
						commit
						3aa047cd1d
					
				
					 1 changed files with 3 additions and 2 deletions
				
			
		|  | @ -286,7 +286,6 @@ bool GMainWindow::LoadROM(const std::string& filename) { | |||
|     Loader::ResultStatus result = app_loader->Load(); | ||||
|     if (Loader::ResultStatus::Success != result) { | ||||
|         LOG_CRITICAL(Frontend, "Failed to load ROM!"); | ||||
|         System::Shutdown(); | ||||
| 
 | ||||
|         switch (result) { | ||||
|         case Loader::ResultStatus::ErrorEncrypted: { | ||||
|  | @ -326,8 +325,10 @@ void GMainWindow::BootGame(const std::string& filename) { | |||
|     if (!InitializeSystem()) | ||||
|         return; | ||||
| 
 | ||||
|     if (!LoadROM(filename)) | ||||
|     if (!LoadROM(filename)) { | ||||
|         System::Shutdown(); | ||||
|         return; | ||||
|     } | ||||
| 
 | ||||
|     // Create and start the emulation thread
 | ||||
|     emu_thread = std::make_unique<EmuThread>(render_window); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue