Skip to content

Commit

Permalink
fix: typo from refactor was breaking build
Browse files Browse the repository at this point in the history
  • Loading branch information
Tormak9970 committed Apr 2, 2023
1 parent 4ca8869 commit 423ea39
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src-tauri/src/steam.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ use home::home_dir;
#[cfg(target_os = "linux")]
use crate::vdf_structs;


#[cfg(target_os = "windows")]
pub fn get_steam_root_dir() -> PathBuf {
let hkcu: RegKey = RegKey::predef(HKEY_CURRENT_USER);
Expand All @@ -28,7 +29,7 @@ pub fn get_steam_root_dir() -> PathBuf {
#[cfg(target_os = "linux")]
pub fn get_steam_root_dir() -> PathBuf {
let pc_home_dir = home_dir().expect("Couldn't get user's home dir.");
let mut steam_dir = home_dir.clone();
let mut steam_dir = pc_home_dir.clone();

if pc_home_dir.join(".var/app/com.valvesoftware.Steam/data/steam").exists() {
steam_dir = steam_dir.join(".var/app/com.valvesoftware.Steam/data/steam");
Expand Down

0 comments on commit 423ea39

Please sign in to comment.