mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Used 3-level asset directory searching, not 2
This commit is contained in:
parent
4167e92d95
commit
bb900fff0f
@ -119,11 +119,11 @@ fn assets_folder() -> PathBuf {
|
||||
match std::env::current_exe() {
|
||||
Ok(mut exe_path) => {
|
||||
exe_path.pop();
|
||||
find_folder::Search::Parents(2)
|
||||
find_folder::Search::Parents(3)
|
||||
.of(exe_path)
|
||||
.for_folder("assets")
|
||||
}
|
||||
Err(_) => find_folder::Search::Parents(2).for_folder("assets"),
|
||||
Err(_) => find_folder::Search::Parents(3).for_folder("assets"),
|
||||
}
|
||||
.expect("Could not find assets folder")
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user