mirror of
https://github.com/redstrate/Physis.git
synced 2025-04-21 20:27:46 +00:00
Check if the user and game directories are valid
This commit is contained in:
parent
b87f54f924
commit
3d8ea7c858
1 changed files with 2 additions and 2 deletions
|
@ -97,7 +97,7 @@ pub fn find_existing_game_dirs() -> Vec<ExistingGameDirectory> {
|
|||
&_ => {}
|
||||
}
|
||||
|
||||
install_dirs
|
||||
install_dirs.iter().filter(|dir| is_valid_game_dir(&dir.path)).collect()
|
||||
}
|
||||
|
||||
/// An existing user directory
|
||||
|
@ -171,7 +171,7 @@ pub fn find_existing_user_dirs() -> Vec<ExistingUserDirectory> {
|
|||
&_ => {}
|
||||
}
|
||||
|
||||
user_dirs
|
||||
user_dirs.iter().filter(|dir| is_valid_user_dir(&dir.path)).collect()
|
||||
}
|
||||
|
||||
fn from_home_dir(path: &'static str) -> String {
|
||||
|
|
Loading…
Add table
Reference in a new issue