mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
[DatTools] Try to make sure that DATs output the same everytime
This commit is contained in:
@@ -1533,9 +1533,9 @@ namespace SabreTools.Helper
|
||||
: rom.Metadata.SystemID.ToString().PadLeft(10, '0')
|
||||
+ "-"
|
||||
+ rom.Metadata.SourceID.ToString().PadLeft(10, '0') + "-")
|
||||
+ (String.IsNullOrEmpty(rom.Machine.Name)
|
||||
? ""
|
||||
: rom.Machine.Name.ToLowerInvariant());
|
||||
+ (String.IsNullOrEmpty(rom.Machine.Name)
|
||||
? "Default"
|
||||
: rom.Machine.Name.ToLowerInvariant());
|
||||
if (sortable.ContainsKey(newkey))
|
||||
{
|
||||
sortable[newkey].Add(rom);
|
||||
@@ -2687,8 +2687,10 @@ namespace SabreTools.Helper
|
||||
int depth = 2, last = -1;
|
||||
string lastgame = null;
|
||||
List<string> splitpath = new List<string>();
|
||||
foreach (List<Rom> roms in sortable.Values)
|
||||
foreach (string key in sortable.Keys)
|
||||
{
|
||||
List<Rom> roms = sortable[key];
|
||||
|
||||
for (int index = 0; index < roms.Count; index++)
|
||||
{
|
||||
Rom rom = roms[index];
|
||||
|
||||
Reference in New Issue
Block a user