explain get_steamdir
This commit is contained in:
parent
08103a08fc
commit
3e6d025b74
|
@ -21,6 +21,7 @@ impl HeuristicError {
|
|||
}
|
||||
}
|
||||
|
||||
/// Gets the Steam local directory
|
||||
pub fn get_steamdir() -> Result<PathBuf, Box<dyn std::error::Error>> {
|
||||
let mut dir = dirs::data_local_dir().unwrap_or_else(|| {
|
||||
let mut dir = dirs::home_dir().unwrap();
|
||||
|
|
Loading…
Reference in a new issue