Skip to content

Commit

Permalink
Improve cross-platform reliability in ImperatorRegionMapper (#506) #p…
Browse files Browse the repository at this point in the history
…atch
  • Loading branch information
IhateTrains authored Dec 25, 2021
1 parent 87f5653 commit 7876089
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/create_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ jobs:
cd ImperatorToCK3
dotnet publish -p:PublishProfile=linux-x64 -c:Release
cd ..
rmdir "Release/ImperatorToCK3"
rm -r "Release/ImperatorToCK3"
cp -R Publish/ Release/
- name: "Build frontend"
run: |
Expand Down
5 changes: 3 additions & 2 deletions ImperatorToCK3/Mappers/Region/ImperatorRegionMapper.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using commonItems;
using commonItems.Collections;
using System.Collections.Generic;
using System.IO;

namespace ImperatorToCK3.Mappers.Region {
public class ImperatorRegionMapper {
Expand All @@ -14,11 +15,11 @@ public ImperatorRegionMapper(string imperatorPath, IEnumerable<Mod> mods) {
var parser = new Parser();

RegisterAreaKeys(parser);
parser.ParseGameFile("map_data/areas.txt", imperatorPath, mods);
parser.ParseGameFile(Path.Combine("map_data", "areas.txt"), imperatorPath, mods);

parser.ClearRegisteredRules();
RegisterRegionKeys(parser);
parser.ParseGameFile("map_data/regions.txt", imperatorPath, mods);
parser.ParseGameFile(Path.Combine("map_data", "regions.txt"), imperatorPath, mods);

LinkRegions();
}
Expand Down

0 comments on commit 7876089

Please sign in to comment.