mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-30 21:30:04 +00:00 
			
		
		
		
	Merge pull request #3247 from muemart/crash
Fix crash when loading an unsupported file
This commit is contained in:
		
						commit
						a5b7a1fa7a
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -487,8 +487,6 @@ bool GMainWindow::LoadROM(const QString& filename) { | |||
| 
 | ||||
|     const Core::System::ResultStatus result{system.Load(render_window, filename.toStdString())}; | ||||
| 
 | ||||
|     Core::Telemetry().AddField(Telemetry::FieldType::App, "Frontend", "Qt"); | ||||
| 
 | ||||
|     if (result != Core::System::ResultStatus::Success) { | ||||
|         switch (result) { | ||||
|         case Core::System::ResultStatus::ErrorGetLoader: | ||||
|  | @ -544,6 +542,8 @@ bool GMainWindow::LoadROM(const QString& filename) { | |||
|         } | ||||
|         return false; | ||||
|     } | ||||
| 
 | ||||
|     Core::Telemetry().AddField(Telemetry::FieldType::App, "Frontend", "Qt"); | ||||
|     return true; | ||||
| } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue