diff --git a/src-tauri/src/commands/binaries.rs b/src-tauri/src/commands/binaries.rs index cccef565..aca068ff 100644 --- a/src-tauri/src/commands/binaries.rs +++ b/src-tauri/src/commands/binaries.rs @@ -1,7 +1,8 @@ +#[cfg(target_os = "windows")] +use std::os::windows::process::CommandExt; use std::{ collections::HashMap, io::ErrorKind, - os::windows::process::CommandExt, path::{Path, PathBuf}, process::Stdio, str::FromStr, diff --git a/src/components/games/GameControls.svelte b/src/components/games/GameControls.svelte index dbb97a03..b7c45814 100644 --- a/src/components/games/GameControls.svelte +++ b/src/components/games/GameControls.svelte @@ -16,7 +16,12 @@ } from "flowbite-svelte"; import { resetGameSettings, uninstallGame } from "$lib/rpc/game"; import { platform } from "@tauri-apps/api/os"; - import { getLaunchGameString, launchGame, launchGameWithCustomExecutable, openREPL } from "$lib/rpc/binaries"; + import { + getLaunchGameString, + launchGame, + launchGameWithCustomExecutable, + openREPL, + } from "$lib/rpc/binaries"; import { doesActiveToolingVersionMeetMinimum, getInstallationDirectory, diff --git a/src/lib/rpc/binaries.ts b/src/lib/rpc/binaries.ts index f6eded20..78520ba2 100644 --- a/src/lib/rpc/binaries.ts +++ b/src/lib/rpc/binaries.ts @@ -81,7 +81,7 @@ export async function launchGameWithCustomExecutable( if (customExecutable !== null) { return await invoke_rpc( "launch_game", - { gameName, inDebug: false, executableLocation: customExecutable}, + { gameName, inDebug: false, executableLocation: customExecutable }, () => {}, "_mirror_", );