mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
[DatFile] Dictionary methods reorg + rename
This commit is contained in:
@@ -142,7 +142,7 @@ namespace SabreTools.Library.Dats
|
||||
}
|
||||
|
||||
// Now remove the file dictionary from the souce DAT to save memory
|
||||
datHeaders[i].Delete();
|
||||
datHeaders[i].DeleteDictionary();
|
||||
});
|
||||
|
||||
// Now that we have a merged DAT, filter it
|
||||
@@ -282,7 +282,7 @@ namespace SabreTools.Library.Dats
|
||||
diffData.Name += post;
|
||||
diffData.Description += post;
|
||||
}
|
||||
diffData.Reset();
|
||||
diffData.ResetDictionary();
|
||||
|
||||
outDatsArray[j] = diffData;
|
||||
});
|
||||
@@ -385,7 +385,7 @@ namespace SabreTools.Library.Dats
|
||||
outerDiffData.FileName += post;
|
||||
outerDiffData.Name += post;
|
||||
outerDiffData.Description += post;
|
||||
outerDiffData.Reset();
|
||||
outerDiffData.ResetDictionary();
|
||||
}
|
||||
|
||||
// Have External dupes
|
||||
@@ -396,7 +396,7 @@ namespace SabreTools.Library.Dats
|
||||
dupeData.FileName += post;
|
||||
dupeData.Name += post;
|
||||
dupeData.Description += post;
|
||||
dupeData.Reset();
|
||||
dupeData.ResetDictionary();
|
||||
}
|
||||
|
||||
// Create a list of DatData objects representing individual output files
|
||||
@@ -414,7 +414,7 @@ namespace SabreTools.Library.Dats
|
||||
diffData.FileName += innerpost;
|
||||
diffData.Name += innerpost;
|
||||
diffData.Description += innerpost;
|
||||
diffData.Reset();
|
||||
diffData.ResetDictionary();
|
||||
outDatsArray[j] = diffData;
|
||||
});
|
||||
|
||||
|
||||
@@ -46,8 +46,8 @@ namespace SabreTools.Library.Dats
|
||||
_sortedBy = bucketBy;
|
||||
|
||||
// Clone the current dictionary into a new one for sorting then reset the internal one
|
||||
SortedDictionary<string, List<DatItem>> sortable = this.CloneFiles();
|
||||
this.Reset();
|
||||
SortedDictionary<string, List<DatItem>> sortable = this.CloneDictionary();
|
||||
this.ResetDictionary();
|
||||
|
||||
Globals.Logger.User("Organizing roms by {0}" + (deduperoms != DedupeType.None ? " and merging" : ""), bucketBy);
|
||||
|
||||
|
||||
@@ -984,7 +984,7 @@ namespace SabreTools.Library.Dats
|
||||
|
||||
// Setup the fixdat
|
||||
DatFile matched = new DatFile(this);
|
||||
matched.Reset();
|
||||
matched.ResetDictionary();
|
||||
matched.FileName = "fixDat_" + matched.FileName;
|
||||
matched.Name = "fixDat_" + matched.Name;
|
||||
matched.Description = "fixDat_" + matched.Description;
|
||||
|
||||
Reference in New Issue
Block a user