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(' ', '_');