mirror of
https://github.com/claunia/romrepomgr.git
synced 2025-12-16 19:24:51 +00:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user