aboutsummaryrefslogtreecommitdiff
path: root/src-tauri/src/platform_specific
diff options
context:
space:
mode:
authorGeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com>2023-02-11 18:33:15 +0100
committerGitHub <noreply@github.com>2023-02-11 18:33:15 +0100
commitfc00447ccc3f63a54faca3d666701c19d9b8b8db (patch)
tree501b8f6691f096d3cb69a8a3a2cb5681fa5acebf /src-tauri/src/platform_specific
parentfd4712accb319cd0084f7e97fea4d9d1299d8938 (diff)
downloadFlightCore-fc00447ccc3f63a54faca3d666701c19d9b8b8db.tar.gz
FlightCore-fc00447ccc3f63a54faca3d666701c19d9b8b8db.zip
refactor: Move various consts to `constants.rs` (#162)
* refactor: Move list of core mods to consts source Move the list of core Northstar mods to constants.rs * fix: Add missing newline * refactor: Move list of blacklisted mods to consts source file * refactor: Move list of TF2 Origin IDs to consts source file
Diffstat (limited to 'src-tauri/src/platform_specific')
-rw-r--r--src-tauri/src/platform_specific/windows.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/src-tauri/src/platform_specific/windows.rs b/src-tauri/src/platform_specific/windows.rs
index ad2ba6df..21772b91 100644
--- a/src-tauri/src/platform_specific/windows.rs
+++ b/src-tauri/src/platform_specific/windows.rs
@@ -1,9 +1,7 @@
/// Windows specific code
use anyhow::{anyhow, Result};
-use crate::check_is_valid_game_path;
-
-const TITANFALL2_ORIGIN_IDS: [&str; 2] = ["Origin.OFR.50.0001452", "Origin.OFR.50.0001456"];
+use crate::{check_is_valid_game_path, constants::TITANFALL2_ORIGIN_IDS};
/// Runs a powershell command and parses output to get Titanfall2 install location on Origin
pub fn origin_install_location_detection() -> Result<String, anyhow::Error> {