Used 3-level asset directory searching, not 2

This commit is contained in:
Joshua Barretto 2019-07-02 12:58:33 +01:00
parent 4167e92d95
commit bb900fff0f

View File

@ -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")
}