mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
[SabreTools, CHDFile] Fix sort issues
This commit is contained in:
@@ -123,6 +123,13 @@ namespace SabreTools.Library.FileTypes
|
||||
|
||||
// Read and verify the CHD signature
|
||||
m_signature = m_br.ReadBytes(8);
|
||||
|
||||
// If no signature could be read, return null
|
||||
if (m_signature == null || m_signature.Length == 0)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
for(int i = 0; i < 8; i++)
|
||||
{
|
||||
if (m_signature[i] != Constants.CHDSignatureBytes[i])
|
||||
|
||||
@@ -524,12 +524,6 @@ namespace SabreTools
|
||||
datHeader.Date = (string)feat.Value.GetValue();
|
||||
break;
|
||||
case "dat":
|
||||
if (!File.Exists((string)feat.Value.GetValue()) && !Directory.Exists((string)feat.Value.GetValue()))
|
||||
{
|
||||
Globals.Logger.Error("Must be a valid file or folder of DATs: {0}", (string)feat.Value.GetValue());
|
||||
Globals.Logger.Close();
|
||||
return;
|
||||
}
|
||||
datfiles.AddRange((List<string>)feat.Value.GetValue());
|
||||
break;
|
||||
case "desc":
|
||||
|
||||
Reference in New Issue
Block a user