aboutsummaryrefslogtreecommitdiff
path: root/src-tauri/src/lib.rs
diff options
context:
space:
mode:
authorGeckoEidechse <gecko.eidechse+git@pm.me>2022-09-20 15:06:29 +0200
committerGeckoEidechse <gecko.eidechse+git@pm.me>2022-09-20 15:06:29 +0200
commit5333f4e19d80be6ff48772b6d35cbe89cc8b04b9 (patch)
tree4dd4247a48de473b9754f56e9a7cac8e39f67e60 /src-tauri/src/lib.rs
parentf9e6bf91e6d0f5928e036350c09aed1d35fae36d (diff)
downloadFlightCore-5333f4e19d80be6ff48772b6d35cbe89cc8b04b9.tar.gz
FlightCore-5333f4e19d80be6ff48772b6d35cbe89cc8b04b9.zip
Move dependency import to top of file
Diffstat (limited to 'src-tauri/src/lib.rs')
-rw-r--r--src-tauri/src/lib.rs4
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);