diff options
author | GeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com> | 2024-02-06 14:44:21 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-06 14:44:21 +0100 |
commit | a074ecb2513803fa4fa91199d1f4ec2101bb34b2 (patch) | |
tree | 4a66a7d650e2594fa449f9d0f87b5af0383ec507 /src-tauri/src/northstar/install.rs | |
parent | c48549a6a65caedb17e74a974b4ae03cb962d874 (diff) | |
download | FlightCore-a074ecb2513803fa4fa91199d1f4ec2101bb34b2.tar.gz FlightCore-a074ecb2513803fa4fa91199d1f4ec2101bb34b2.zip |
refactor: Get Steam ID from libthermite (#786)
Instead of defining our own const, let's just re-use the one recently added to libthermite
Diffstat (limited to 'src-tauri/src/northstar/install.rs')
-rw-r--r-- | src-tauri/src/northstar/install.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src-tauri/src/northstar/install.rs b/src-tauri/src/northstar/install.rs index a89de018..e0653ddb 100644 --- a/src-tauri/src/northstar/install.rs +++ b/src-tauri/src/northstar/install.rs @@ -4,7 +4,7 @@ use std::time::Duration; use std::{cell::RefCell, time::Instant}; use ts_rs::TS; -use crate::constants::{CORE_MODS, NORTHSTAR_DEFAULT_PROFILE, NORTHSTAR_DLL, TITANFALL2_STEAM_ID}; +use crate::constants::{CORE_MODS, NORTHSTAR_DEFAULT_PROFILE, NORTHSTAR_DLL}; use crate::{ util::{extract, move_dir_all}, GameInstall, InstallType, @@ -310,8 +310,7 @@ pub fn find_game_install_location() -> Result<GameInstall, String> { } } - let titanfall2_steamid = TITANFALL2_STEAM_ID.parse().unwrap(); - match steamdir.app(&titanfall2_steamid) { + match steamdir.app(&thermite::TITANFALL2_STEAM_ID) { Some(app) => { // println!("{:#?}", app); let game_install = GameInstall { |