Include regionSize in import/export path, even if path is custom

This commit is contained in:
glax 2024-07-23 22:37:12 +02:00
parent ae65cc9e1b
commit b898bb3f2d
2 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@ public class Converter(float regionSize, string? exportFolderPath = null, ILogge
{
internal readonly float RegionSize = regionSize;
internal readonly string ExportFolderPath = exportFolderPath ?? Path.Join(Environment.CurrentDirectory, regionSize.ToString(CultureInfo.InvariantCulture));
internal readonly string ExportFolderPath = Path.Join(exportFolderPath ?? Environment.CurrentDirectory, regionSize.ToString(CultureInfo.InvariantCulture));
internal const string NodesMapRegionFileName = "nodes.map";
internal const string WayMapRegionFileName = "ways.map";
internal const string NodesRegionDirectory = "nodes";

View File

@ -9,7 +9,7 @@ public class RegionLoader(float regionSize, string? importFolderPath = null, ILo
{
internal readonly float RegionSize = regionSize;
internal readonly string ImportFolderPath = importFolderPath ?? Path.Join(Environment.CurrentDirectory, regionSize.ToString(CultureInfo.InvariantCulture));
internal readonly string ImportFolderPath = Path.Join(importFolderPath ?? Environment.CurrentDirectory, regionSize.ToString(CultureInfo.InvariantCulture));
private const string NodesMapRegionFileName = "nodes.map";
private const string WayMapRegionFileName = "ways.map";