aboutsummaryrefslogtreecommitdiff
path: root/src-tauri/src
diff options
context:
space:
mode:
authorJan <sentrycraft123@gmail.com>2023-10-10 18:14:50 +0200
committerGitHub <noreply@github.com>2023-10-10 18:14:50 +0200
commit1815aa8c99deb25bee576c39f3758a1f42e7f4b0 (patch)
treeb121cc86069ac3bf62cc180ea44fb7b2854571c7 /src-tauri/src
parent394b2f729e6783ea2a3555bc56cc2fa2b731c416 (diff)
downloadFlightCore-1815aa8c99deb25bee576c39f3758a1f42e7f4b0.tar.gz
FlightCore-1815aa8c99deb25bee576c39f3758a1f42e7f4b0.zip
feat: Remove compatibility tool check (#607)
Remove compatibility tool check as all major proton versions can run Northstar out of the box or with minor configurations: - Proton 8 needs a DLLOVERRIDE - GE-Proton works like a charm with a special Northstar case - NorthstarProton always worked
Diffstat (limited to 'src-tauri/src')
-rw-r--r--src-tauri/src/constants.rs4
-rw-r--r--src-tauri/src/northstar/mod.rs12
2 files changed, 2 insertions, 14 deletions
diff --git a/src-tauri/src/constants.rs b/src-tauri/src/constants.rs
index 33aefac8..7ee98f95 100644
--- a/src-tauri/src/constants.rs
+++ b/src-tauri/src/constants.rs
@@ -58,7 +58,3 @@ pub const NORTHSTAR_DLL: &str = "Northstar.dll";
/// Profile that Northstar defaults to and ships with
pub const NORTHSTAR_DEFAULT_PROFILE: &str = "R2Northstar";
-
-/// List of valid compatibility tools that Northstar can be launched with
-pub const VALID_NORTHSTAR_PROTON_BUILDS: [&str; 3] =
- ["NorthstarProton-8.1-1", "GE-Proton8-13", "GE-Proton8-11"];
diff --git a/src-tauri/src/northstar/mod.rs b/src-tauri/src/northstar/mod.rs
index 5b0139f9..284eac41 100644
--- a/src-tauri/src/northstar/mod.rs
+++ b/src-tauri/src/northstar/mod.rs
@@ -5,7 +5,7 @@ pub mod profile;
use crate::util::check_ea_app_or_origin_running;
use crate::{
- constants::{CORE_MODS, TITANFALL2_STEAM_ID, VALID_NORTHSTAR_PROTON_BUILDS},
+ constants::{CORE_MODS, TITANFALL2_STEAM_ID},
get_host_os, GameInstall, InstallType,
};
use anyhow::anyhow;
@@ -144,15 +144,7 @@ pub fn launch_northstar_steam(
if get_host_os() != "windows" {
let titanfall2_steamid: u32 = TITANFALL2_STEAM_ID.parse().unwrap();
match steamdir.compat_tool(&titanfall2_steamid) {
- Some(compat) => {
- if !VALID_NORTHSTAR_PROTON_BUILDS
- .contains(&compat.clone().name.unwrap().as_str())
- {
- return Err(
- "Titanfall2 was not configured to use a valid version of NorthstarProton or GE-Proton".to_string(),
- );
- }
- }
+ Some(_) => {}
None => {
return Err(
"Titanfall2 was not configured to use a compatibility tool".to_string()