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
|
// Read and verify the CHD signature
|
||||||
m_signature = m_br.ReadBytes(8);
|
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++)
|
for(int i = 0; i < 8; i++)
|
||||||
{
|
{
|
||||||
if (m_signature[i] != Constants.CHDSignatureBytes[i])
|
if (m_signature[i] != Constants.CHDSignatureBytes[i])
|
||||||
|
|||||||
@@ -524,12 +524,6 @@ namespace SabreTools
|
|||||||
datHeader.Date = (string)feat.Value.GetValue();
|
datHeader.Date = (string)feat.Value.GetValue();
|
||||||
break;
|
break;
|
||||||
case "dat":
|
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());
|
datfiles.AddRange((List<string>)feat.Value.GetValue());
|
||||||
break;
|
break;
|
||||||
case "desc":
|
case "desc":
|
||||||
|
|||||||
Reference in New Issue
Block a user