1
Fork 0
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:
Joshua Goins 2024-05-26 07:48:41 -04:00
parent b87f54f924
commit 3d8ea7c858

View file

@ -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 {