Skip to content
This repository has been archived by the owner on Mar 29, 2020. It is now read-only.

Commit

Permalink
Merge remote-tracking branch 'remotes/origin/Frontend'
Browse files Browse the repository at this point in the history
  • Loading branch information
Idhrendur committed Jun 25, 2017
2 parents 45bd4a4 + 63b3259 commit 7899b5e
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 7899b5e

Please sign in to comment.