mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-30 21:30:04 +00:00 
			
		
		
		
	Don't crash when getting perf stats
This commit is contained in:
		
							parent
							
								
									5b6ee9a6ab
								
							
						
					
					
						commit
						714a85119d
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		|  | @ -296,7 +296,8 @@ void System::PrepareReschedule() { | |||
| } | ||||
| 
 | ||||
| PerfStats::Results System::GetAndResetPerfStats() { | ||||
|     return perf_stats->GetAndResetStats(timing->GetGlobalTimeUs()); | ||||
|     return (perf_stats && timing) ? perf_stats->GetAndResetStats(timing->GetGlobalTimeUs()) | ||||
|                                   : PerfStats::Results{}; | ||||
| } | ||||
| 
 | ||||
| void System::Reschedule() { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue