Skip to content

Commit

Permalink
Fix mod copying when default name is used (#1633) #patch
Browse files Browse the repository at this point in the history
  • Loading branch information
IhateTrains authored Dec 10, 2023
1 parent 96cd4c6 commit 1535f00
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ImperatorToCK3/Configuration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -199,8 +199,8 @@ private void VerifyCK3Path() {
}

private void SetOutputName() {
if (OutputModName.Length == 0) {
OutputModName = CommonFunctions.TrimPath(SaveGamePath);
if (string.IsNullOrWhiteSpace(OutputModName)) {
OutputModName = CommonFunctions.TrimExtension(CommonFunctions.TrimPath(SaveGamePath));
}
OutputModName = OutputModName.Replace('-', '_');
OutputModName = OutputModName.Replace(' ', '_');
Expand Down

0 comments on commit 1535f00

Please sign in to comment.