mirror of
				https://git.tardis.systems/mirrors/yuzu
				synced 2025-11-04 04:34:07 +01:00 
			
		
		
		
	settings: Clearer NCE error messages
This commit is contained in:
		
							parent
							
								
									c1924951ad
								
							
						
					
					
						commit
						dc0fb56f3a
					
				@ -160,12 +160,16 @@ static bool is_nce_enabled = false;
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
void SetNceEnabled(bool is_39bit) {
 | 
					void SetNceEnabled(bool is_39bit) {
 | 
				
			||||||
    const bool is_nce_selected = values.cpu_backend.GetValue() == CpuBackend::Nce;
 | 
					    const bool is_nce_selected = values.cpu_backend.GetValue() == CpuBackend::Nce;
 | 
				
			||||||
    is_nce_enabled = IsFastmemEnabled() && is_nce_selected && is_39bit;
 | 
					    if (is_nce_selected && !IsFastmemEnabled()) {
 | 
				
			||||||
    if (is_nce_selected && !is_nce_enabled) {
 | 
					        LOG_WARNING(Common, "Fastmem is required to natively execute code in a performant manner, "
 | 
				
			||||||
 | 
					                            "falling back to Dynarmic");
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					    if (is_nce_selected && !is_39bit) {
 | 
				
			||||||
        LOG_WARNING(
 | 
					        LOG_WARNING(
 | 
				
			||||||
            Common,
 | 
					            Common,
 | 
				
			||||||
            "Program does not utilize 39-bit address space, unable to natively execute code");
 | 
					            "Program does not utilize 39-bit address space, unable to natively execute code");
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					    is_nce_enabled = IsFastmemEnabled() && is_nce_selected && is_39bit;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
bool IsNceEnabled() {
 | 
					bool IsNceEnabled() {
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user