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
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:
parent
bf5c21dd03
commit
83de50409b
1 changed files with 2 additions and 2 deletions
|
@ -87,7 +87,7 @@ pub fn collect_game_info() -> Result<Option<GameInfo>> {
|
||||||
.find_app(STEAMAPP_ID)
|
.find_app(STEAMAPP_ID)
|
||||||
.wrap_err("Failed to look up game by Steam app 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);
|
return Ok(None);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -96,7 +96,7 @@ pub fn collect_game_info() -> Result<Option<GameInfo>> {
|
||||||
.ok_or_eyre("Missing field 'last_updated'")?;
|
.ok_or_eyre("Missing field 'last_updated'")?;
|
||||||
|
|
||||||
Ok(Some(GameInfo {
|
Ok(Some(GameInfo {
|
||||||
path: app.install_dir.into(),
|
path: library.path().join(app.install_dir),
|
||||||
last_updated: last_updated.into(),
|
last_updated: last_updated.into(),
|
||||||
}))
|
}))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue