drag & drop - default unknown file extensions to rom

This commit is contained in:
adelikat 2017-05-14 10:13:22 -05:00
parent a9ba93fcf3
commit 618951403d
1 changed files with 8 additions and 1 deletions

View File

@ -217,8 +217,15 @@ namespace BizHawk.Client.EmuHawk
bool executable = false;
var archiveHandler = new SevenZipSharpArchiveHandler();
if (String.IsNullOrEmpty(archive) && archiveHandler.CheckSignature(file, out offset, out executable))
if (string.IsNullOrEmpty(archive) && archiveHandler.CheckSignature(file, out offset, out executable))
{
sortedFiles[LoadOrdering.ROM].Add(fileInformation);
}
else
{
// adelikat: adding this hack to restore the default behavior that unrecognized files are treated like roms
sortedFiles[LoadOrdering.ROM].Add(fileInformation);
}
/*
* This is where handling archives would go.