Fix locating Steam game path
All checks were successful
lint/clippy Checking for common mistakes and opportunities for code improvement
build/msvc Build for the target platform: msvc
build/linux Build for the target platform: linux

This commit is contained in:
Lucas Schwiderski 2025-04-21 23:55:55 +02:00
parent bf5c21dd03
commit 83de50409b
Signed by: lucas
GPG key ID: AA12679AAA6DF4D8

View file

@ -87,7 +87,7 @@ pub fn collect_game_info() -> Result<Option<GameInfo>> {
.find_app(STEAMAPP_ID)
.wrap_err("Failed to look up game by Steam app ID")?;
let Some((app, _)) = found else {
let Some((app, library)) = found else {
return Ok(None);
};
@ -96,7 +96,7 @@ pub fn collect_game_info() -> Result<Option<GameInfo>> {
.ok_or_eyre("Missing field 'last_updated'")?;
Ok(Some(GameInfo {
path: app.install_dir.into(),
path: library.path().join(app.install_dir),
last_updated: last_updated.into(),
}))
}