mirror of
https://github.com/Drop-OSS/drop
synced 2026-08-27 14:23:05 -04:00
Fix Windows build
This commit is contained in:
parent
16ef83228b
commit
d7ec7fc25c
1 changed files with 3 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue