mirror of
https://github.com/neocturne/MinedMap.git
synced 2025-07-04 06:39:07 +02:00
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:
parent
d5ac38ed9b
commit
c1260a63b5
3 changed files with 44 additions and 41 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue