minedmap: separate collection for region list from preprocessing

Preparation for parallel processing, as well as a fix for regions
missing from later steps when the initial processing failed (rather than
using the processed data from a previous run).
This commit is contained in:
Matthias Schiffer 2023-08-14 14:27:52 +02:00
parent d5ac38ed9b
commit c1260a63b5
Signed by: neocturne
GPG key ID: 16EF3F64CB201D9C
3 changed files with 44 additions and 41 deletions

View file

@ -85,6 +85,11 @@ impl Config {
}
}
pub fn region_path(&self, coords: TileCoords) -> PathBuf {
let filename = coord_filename(coords, "mca");
[&self.region_dir, Path::new(&filename)].iter().collect()
}
pub fn processed_path(&self, coords: TileCoords) -> PathBuf {
let filename = coord_filename(coords, "bin");
[&self.processed_dir, Path::new(&filename)].iter().collect()