mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
change(common): remove find_folder
This commit is contained in:
parent
abaf6ee53e
commit
11730f2136
1
Cargo.lock
generated
1
Cargo.lock
generated
@ -4717,7 +4717,6 @@ dependencies = [
|
||||
"crossbeam",
|
||||
"dot_vox",
|
||||
"enum-iterator",
|
||||
"find_folder",
|
||||
"hashbrown",
|
||||
"image",
|
||||
"indexmap",
|
||||
|
@ -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"
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user