This commit is contained in:
Moritz Bender 2021-03-30 20:51:28 +02:00 committed by GitHub
parent 6f47492d95
commit 5743b0257d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -55,7 +55,7 @@ namespace BizHawk.Client.Common
_entriesByName = new Dictionary<string, ZipArchiveEntry>();
foreach (var z in _zip.Entries)
{
string name = z.Name;
string name = z.FullName;
int i;
if ((i = name.LastIndexOf('.')) != -1)
{
@ -80,7 +80,7 @@ namespace BizHawk.Client.Common
return null;
}
}
try
{
ret._zip = new ZipArchive(new FileStream(filename, FileMode.Open, FileAccess.Read), ZipArchiveMode.Read);
@ -113,12 +113,12 @@ namespace BizHawk.Client.Common
return true;
}
if (abort)
{
throw new Exception($"Essential zip section not found: {lump.ReadName}");
}
return false;
}