diff --git a/.gitignore b/.gitignore index 3fdeb30c5..ac9a0e8d9 100644 --- a/.gitignore +++ b/.gitignore @@ -34,3 +34,6 @@ DocsGenerator/obj/ log.txt *.user .vscode/settings.json + +# Imperator: Rome saves for testing +/Saves/ diff --git a/ImperatorToCK3/Helpers/RakalyCaller.cs b/ImperatorToCK3/Helpers/RakalyCaller.cs index 7db566149..b711c1c10 100644 --- a/ImperatorToCK3/Helpers/RakalyCaller.cs +++ b/ImperatorToCK3/Helpers/RakalyCaller.cs @@ -120,11 +120,8 @@ public static void MeltSave(string savePath) { if (stdErrText.Contains("Failed to create melted file")) { // Try to copy the file to the converter's temp folder before melting. - var saveDisk = Path.GetPathRoot(savePath); - var converterDisk = Path.GetPathRoot(Directory.GetCurrentDirectory()); - - if (saveDisk != converterDisk) { - const string fallbackSavePath = "temp/save_to_be_melted.rome"; + const string fallbackSavePath = "temp/save_to_be_melted.rome"; + if (savePath != fallbackSavePath) { File.Copy(savePath, fallbackSavePath, overwrite: true); MeltSave(fallbackSavePath); return;