diff options
author | GeckoEidechse <gecko.eidechse+git@pm.me> | 2022-09-06 00:45:06 +0200 |
---|---|---|
committer | GeckoEidechse <gecko.eidechse+git@pm.me> | 2022-09-06 00:45:06 +0200 |
commit | 78a1736c907dc7ebea8756811a2d56c6a63e7bbc (patch) | |
tree | f6684eeb8f70e808b1c7e570538e59a3181ca6dc | |
parent | 0317faf09e4afcf32ec325cfeaf122db009e63da (diff) | |
download | FlightCore-78a1736c907dc7ebea8756811a2d56c6a63e7bbc.tar.gz FlightCore-78a1736c907dc7ebea8756811a2d56c6a63e7bbc.zip |
Add todo comment
We should use a passed game_path instead of trying to redetect it
-rw-r--r-- | src-tauri/src/lib.rs | 2 |
1 files changed, 2 insertions, 0 deletions
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<String, anyhow::Error> { + // 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), |