Fix: GC craches on startup
The existens of texture_base_path must be checked!
This commit is contained in:
		@ -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 {
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user