attempt to fix compilation error take 2
This commit is contained in:
parent
2ee06eb678
commit
e4189f5603
1 changed files with 5 additions and 5 deletions
|
@ -5,6 +5,7 @@ mod types;
|
|||
mod clean;
|
||||
mod install_bepinex;
|
||||
mod install_mod;
|
||||
#[cfg(not(target_os = "windows"))]
|
||||
mod launch_options;
|
||||
|
||||
use types::InstallErr;
|
||||
|
@ -86,11 +87,10 @@ pub async fn install(window: tauri::Window, game_path: String) -> Result<(), Ins
|
|||
// Set steam launch option if OS is not windows
|
||||
//
|
||||
|
||||
if cfg!(not(target_os = "windows")) {
|
||||
match launch_options::unix_launch_option_setup(&window, game_path).await {
|
||||
Ok(_) => {}
|
||||
Err(err) => return Err(err),
|
||||
}
|
||||
#[cfg(not(target_os = "windows"))]
|
||||
match launch_options::unix_launch_option_setup(&window, game_path).await {
|
||||
Ok(_) => {}
|
||||
Err(err) => return Err(err),
|
||||
}
|
||||
|
||||
//
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue