mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-11-03 23:28:48 +00:00 
			
		
		
		
	Handle cases when std::optional does not contain a value
This commit is contained in:
		
							parent
							
								
									d37a2270d6
								
							
						
					
					
						commit
						2306af3600
					
				
					 9 changed files with 15 additions and 7 deletions
				
			
		| 
						 | 
				
			
			@ -948,6 +948,7 @@ Surface FindMatch(const SurfaceCache& surface_cache, const SurfaceParams& params
 | 
			
		|||
                return std::make_pair(surface->CanSubRect(params), surface->GetInterval());
 | 
			
		||||
            });
 | 
			
		||||
            IsMatch_Helper(std::integral_constant<MatchFlags, MatchFlags::Copy>{}, [&] {
 | 
			
		||||
                ASSERT(validate_interval);
 | 
			
		||||
                auto copy_interval =
 | 
			
		||||
                    params.FromInterval(*validate_interval).GetCopyableInterval(surface);
 | 
			
		||||
                bool matched = boost::icl::length(copy_interval & *validate_interval) != 0 &&
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue