Skip to content

Commit

Permalink
Fix dlc loading for vic3
Browse files Browse the repository at this point in the history
  • Loading branch information
crschnick committed Jul 18, 2024
1 parent 151c6df commit 9bf05c7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public static Optional<GameDlc> fromDirectory(Path p) throws Exception {

String dlcName = p.getFileName().toString();
String dlcId = dlcName.split("_")[0];
Path filePath = p.resolve(dlcId + ".dlc");
Path filePath = Files.exists(p.resolve(dlcId + ".dlc")) ? p.resolve(dlcId + ".dlc") : p.resolve(dlcName + ".dlc");
Path dataPath = p.resolve(dlcId + ".zip");

if (!Files.exists(filePath)) {
Expand Down

0 comments on commit 9bf05c7

Please sign in to comment.