If file is detected as an archive check if it is a FAT disk.

The Unarchiver detects disk images containing a single archive as the archive as part of their skipping of the self-extracting code.
This commit is contained in:
2020-08-29 17:56:17 +01:00
parent ab24e61b3d
commit ddc974a610
3 changed files with 242 additions and 0 deletions

View File

@@ -4,6 +4,7 @@ using System.Diagnostics;
using System.IO;
using System.Linq;
using Newtonsoft.Json;
using RomRepoMgr.Core.Aaru;
using RomRepoMgr.Core.EventArgs;
using RomRepoMgr.Core.Models;
using RomRepoMgr.Database;
@@ -91,6 +92,11 @@ namespace RomRepoMgr.Core.Workers
});
archiveFormat = GetArchiveFormat(file, out archiveFiles);
// If a floppy contains only the archive, unar will recognize it, on its skipping of SFXs.
if(archiveFormat != null &&
FAT.Identify(file))
archiveFormat = null;
}
if(archiveFormat == null)