diff options
Diffstat (limited to 'src-tauri/src/lib.rs')
-rw-r--r-- | src-tauri/src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src-tauri/src/lib.rs b/src-tauri/src/lib.rs index 6428ce2e..f2fef1da 100644 --- a/src-tauri/src/lib.rs +++ b/src-tauri/src/lib.rs @@ -4,6 +4,7 @@ use anyhow::{anyhow, Context, Result}; use powershell_script::PsScriptBuilder; use regex::Regex; use serde::{Deserialize, Serialize}; +use sysinfo::SystemExt; use zip::ZipArchive; #[derive(Serialize, Deserialize, Debug, Clone)] @@ -323,9 +324,8 @@ pub fn launch_northstar(game_install: GameInstall) -> Result<String, String> { )) } -use sysinfo::{System, SystemExt}; pub fn check_origin_running() -> bool { - let s = System::new_all(); + let s = sysinfo::System::new_all(); for _process in s.processes_by_name("Origin.exe") { // check here if this is your process // dbg!(process); |