mirror of
https://github.com/Drop-OSS/drop.git
synced 2026-07-27 10:14:40 +10:00
Fix Windows build
This commit is contained in:
@@ -65,10 +65,13 @@ impl ProcessHandler for UMULauncher {
|
|||||||
.or(database.applications.default_proton_path.as_ref())
|
.or(database.applications.default_proton_path.as_ref())
|
||||||
.ok_or(ProcessError::NoCompat)?;
|
.ok_or(ProcessError::NoCompat)?;
|
||||||
|
|
||||||
|
#[cfg(target_os = "linux")]
|
||||||
let proton_valid = crate::compat::read_proton_path(PathBuf::from(proton_path))
|
let proton_valid = crate::compat::read_proton_path(PathBuf::from(proton_path))
|
||||||
.ok()
|
.ok()
|
||||||
.flatten()
|
.flatten()
|
||||||
.is_some();
|
.is_some();
|
||||||
|
#[cfg(not(target_os = "linux"))]
|
||||||
|
let proton_valid = false;
|
||||||
if !proton_valid {
|
if !proton_valid {
|
||||||
return Err(ProcessError::NoCompat);
|
return Err(ProcessError::NoCompat);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user