From 78a1736c907dc7ebea8756811a2d56c6a63e7bbc Mon Sep 17 00:00:00 2001 From: GeckoEidechse Date: Tue, 6 Sep 2022 00:45:06 +0200 Subject: Add todo comment We should use a passed game_path instead of trying to redetect it --- src-tauri/src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src-tauri/src/lib.rs b/src-tauri/src/lib.rs index 58a04c5e..3542cab5 100644 --- a/src-tauri/src/lib.rs +++ b/src-tauri/src/lib.rs @@ -47,6 +47,8 @@ pub fn find_game_install_location() -> Result<(String, InstallType), anyhow::Err /// Returns the current Northstar version number as a string pub fn get_northstar_version_number() -> Result { + // TODO: if `find_game_install_location` is unable to find game_path then function will fail to detect + // Northstar install, even if game_path is known due to user entering it manually let (install_location, install_type) = match find_game_install_location() { Ok((path, install_type)) => (path, install_type), Err(err) => return Err(err), -- cgit v1.2.3