Skip to content

Commit

Permalink
Improve cross-platform reliability in CK3RegionMapper (#507) #patch
Browse files Browse the repository at this point in the history
  • Loading branch information
IhateTrains authored Dec 25, 2021
1 parent ac70c99 commit 639016f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ImperatorToCK3/Mappers/Region/CK3RegionMapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ public CK3RegionMapper() { }
public CK3RegionMapper(string ck3Path, Title.LandedTitles landedTitles) {
Logger.Info("Initializing Geography...");

var regionFilePath = Path.Combine(ck3Path, "game/map_data/geographical_region.txt");
var islandRegionFilePath = Path.Combine(ck3Path, "game/map_data/island_region.txt");
var ck3MapDataPath = Path.Combine(ck3Path, "game", "map_data");
var regionFilePath = Path.Combine(ck3MapDataPath, "geographical_region.txt");
var islandRegionFilePath = Path.Combine(ck3MapDataPath, "island_region.txt");

LoadRegions(landedTitles, regionFilePath, islandRegionFilePath);
}
Expand Down

0 comments on commit 639016f

Please sign in to comment.