change(common): remove find_folder

This commit is contained in:
Songtronix 2020-08-31 16:43:16 +02:00
parent abaf6ee53e
commit 11730f2136
3 changed files with 8 additions and 9 deletions

1
Cargo.lock generated
View File

@ -4717,7 +4717,6 @@ dependencies = [
"crossbeam",
"dot_vox",
"enum-iterator",
"find_folder",
"hashbrown",
"image",
"indexmap",

View File

@ -25,7 +25,6 @@ rand = "0.7"
rayon = "1.3.0"
lazy_static = "1.4.0"
hashbrown = { version = "0.7.2", features = ["rayon", "serde", "nightly"] }
find_folder = "0.3.0"
parking_lot = "0.9.0"
crossbeam = "0.7"
notify = "5.0.0-pre.3"

View File

@ -393,13 +393,14 @@ lazy_static! {
tracing::trace!("Possible asset locations paths={:?}", paths);
for path in paths.clone() {
match find_folder::check_dir("assets", &path) {
Ok(assets_path) => {
tracing::info!("Assets found path={}", assets_path.display());
return assets_path;
},
Err(_) => continue,
for mut path in paths.clone() {
if !path.ends_with("assets") {
path = path.join("assets");
}
if path.is_dir() {
tracing::info!("Assets found path={}", path.display());
return path;
}
}