From 1535f00fd16b6f2d6ad99d6406e409bd56e2df33 Mon Sep 17 00:00:00 2001 From: IhateTrains Date: Sun, 10 Dec 2023 14:23:27 +0000 Subject: [PATCH] Fix mod copying when default name is used (#1633) #patch --- ImperatorToCK3/Configuration.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ImperatorToCK3/Configuration.cs b/ImperatorToCK3/Configuration.cs index 2e6550fa0..6ec96aa01 100644 --- a/ImperatorToCK3/Configuration.cs +++ b/ImperatorToCK3/Configuration.cs @@ -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(' ', '_');