From 63b3259963f654c5eca5ebf9e5e5ee2e5d43e27c Mon Sep 17 00:00:00 2001 From: Idhrendur Date: Sun, 25 Jun 2017 12:44:59 -0700 Subject: [PATCH] Handle new-style compressed saves --- .../Converting/Operations/ExtractSave/ZipFileHelper.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Frontend/ParadoxConverters.Frontend/Frontend.Core/Converting/Operations/ExtractSave/ZipFileHelper.cs b/Frontend/ParadoxConverters.Frontend/Frontend.Core/Converting/Operations/ExtractSave/ZipFileHelper.cs index 86683adb6..8fc95b3ca 100644 --- a/Frontend/ParadoxConverters.Frontend/Frontend.Core/Converting/Operations/ExtractSave/ZipFileHelper.cs +++ b/Frontend/ParadoxConverters.Frontend/Frontend.Core/Converting/Operations/ExtractSave/ZipFileHelper.cs @@ -28,6 +28,11 @@ public void ExtractFile(string sourceArchiveName, string fileToExtract, string d var zip = zipFileProxy.Open(sourceArchiveName, ZipArchiveMode.Read); var zipFileEntry = zip.Entries.FirstOrDefault(entry => entry.FullName.Equals(fileToExtract)); + if (zipFileEntry == null) + { + zipFileEntry = zip.Entries.FirstOrDefault(entry => entry.FullName.Equals("game.eu4")); + } + if (zipFileEntry == null) { throw new FileNotFoundInArchiveException();