only mame .zip's should be filtered out

This commit is contained in:
feos 2019-12-23 00:29:33 +03:00
parent 47f77b42e9
commit 0fe2205057
1 changed files with 6 additions and 9 deletions
BizHawk.Client.EmuHawk/tools/HexEditor

View File

@ -148,17 +148,14 @@ namespace BizHawk.Client.EmuHawk
public void Restart()
{
using (var file = new HawkFile(MainForm.CurrentlyOpenRom.Split('*').Last()))
if (!(MainForm.CurrentlyOpenRomArgs.OpenAdvanced is OpenAdvanced_MAME))
{
if (!file.IsArchive)
{
_rom = GetRomBytes();
_romDomain = new MemoryDomainByteArray("File on Disk", MemoryDomain.Endian.Little, _rom, true, 1);
_rom = GetRomBytes();
_romDomain = new MemoryDomainByteArray("File on Disk", MemoryDomain.Endian.Little, _rom, true, 1);
if (_domain.Name == _romDomain.Name)
{
_domain = _romDomain;
}
if (_domain.Name == _romDomain.Name)
{
_domain = _romDomain;
}
}