diff options
-rw-r--r-- | src-tauri/src/lib.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src-tauri/src/lib.rs b/src-tauri/src/lib.rs index 5eb19b5b..edf39842 100644 --- a/src-tauri/src/lib.rs +++ b/src-tauri/src/lib.rs @@ -88,8 +88,9 @@ pub fn get_northstar_version_number(game_path: String) -> Result<String, anyhow: /// Checks whether the provided path is a valid Titanfall2 gamepath by checking against a certain set of criteria pub fn check_is_valid_game_path(game_install_path: &str) -> Result<(), anyhow::Error> { + let path_to_titanfall2_exe = format!("{}/Titanfall2.exe", game_install_path); let is_correct_game_path = - std::path::Path::new(&format!("{}/Titanfall2.exe", game_install_path)).exists(); + std::path::Path::new(&path_to_titanfall2_exe).exists(); println!("Titanfall2.exe exists in path? {}", is_correct_game_path); // Exit early if wrong game path |