mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
[DatItem] ... uh, that's actually for this one. Previous tweaks writing to all stats but HTML
This commit is contained in:
@@ -756,7 +756,11 @@ namespace SabreTools.Helper
|
|||||||
{
|
{
|
||||||
if ((x.Type == ItemType.Rom || x.Type == ItemType.Disk) && (y.Type == ItemType.Rom || y.Type == ItemType.Disk))
|
if ((x.Type == ItemType.Rom || x.Type == ItemType.Disk) && (y.Type == ItemType.Rom || y.Type == ItemType.Disk))
|
||||||
{
|
{
|
||||||
return nc.Compare(x.Name, y.Name);
|
if (Path.GetDirectoryName(x.Name) == Path.GetDirectoryName(y.Name))
|
||||||
|
{
|
||||||
|
return nc.Compare(Path.GetFileName(x.Name), Path.GetFileName(y.Name));
|
||||||
|
}
|
||||||
|
return nc.Compare(Path.GetDirectoryName(x.Name), Path.GetDirectoryName(y.Name));
|
||||||
}
|
}
|
||||||
else if ((x.Type == ItemType.Rom || x.Type == ItemType.Disk) && (y.Type != ItemType.Rom && y.Type != ItemType.Disk))
|
else if ((x.Type == ItemType.Rom || x.Type == ItemType.Disk) && (y.Type != ItemType.Rom && y.Type != ItemType.Disk))
|
||||||
{
|
{
|
||||||
@@ -768,7 +772,11 @@ namespace SabreTools.Helper
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
return nc.Compare(x.Name, y.Name);
|
if (Path.GetDirectoryName(x.Name) == Path.GetDirectoryName(y.Name))
|
||||||
|
{
|
||||||
|
return nc.Compare(Path.GetFileName(x.Name), Path.GetFileName(y.Name));
|
||||||
|
}
|
||||||
|
return nc.Compare(Path.GetDirectoryName(x.Name), Path.GetDirectoryName(y.Name));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return nc.Compare(x.MachineName, y.MachineName);
|
return nc.Compare(x.MachineName, y.MachineName);
|
||||||
|
|||||||
Reference in New Issue
Block a user