Fix: GC craches on startup
The existens of texture_base_path must be checked!
This commit is contained in:
parent
0b7cf9c7cd
commit
ec9c6888fc
|
@ -191,8 +191,14 @@ impl DataStore {
|
|||
None
|
||||
}
|
||||
}
|
||||
let texture_base_path = self.texture_base_path();
|
||||
|
||||
let texture_dir = std::fs::read_dir(self.texture_base_path())?;
|
||||
if !texture_base_path.exists() {
|
||||
println!("No Textures Found: Skip GC.");
|
||||
return Ok(());
|
||||
}
|
||||
|
||||
let texture_dir = std::fs::read_dir(texture_base_path)?;
|
||||
|
||||
let mut hashs_on_disk = HashSet::new();
|
||||
for result_direntry in texture_dir {
|
||||
|
|
Loading…
Reference in New Issue