Fix Windows build

This commit is contained in:
DecDucK
2026-02-07 13:14:19 +11:00
parent 01335dadaf
commit fe9a88b9b2
@@ -65,10 +65,13 @@ impl ProcessHandler for UMULauncher {
.or(database.applications.default_proton_path.as_ref())
.ok_or(ProcessError::NoCompat)?;
#[cfg(target_os = "linux")]
let proton_valid = crate::compat::read_proton_path(PathBuf::from(proton_path))
.ok()
.flatten()
.is_some();
#[cfg(not(target_os = "linux"))]
let proton_valid = false;
if !proton_valid {
return Err(ProcessError::NoCompat);
}