mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
[ALL] Make Parse use the Dat as a ref
All cases where this was being used, it was being assigned back to the original datdata object. This is not necessary.
This commit is contained in:
@@ -173,7 +173,7 @@ namespace SabreTools
|
||||
{
|
||||
Int32.TryParse(sourcemap[hash], out tempSrcId);
|
||||
}
|
||||
datdata = DatTools.Parse(file, 0, tempSrcId, datdata, _logger);
|
||||
DatTools.Parse(file, 0, tempSrcId, ref datdata, _logger);
|
||||
}
|
||||
|
||||
// If the dictionary is empty for any reason, tell the user and exit
|
||||
|
||||
@@ -367,7 +367,7 @@ namespace SabreTools
|
||||
|
||||
// Get all roms that are found in the DAT to see what needs to be added
|
||||
Dat datdata = new Dat();
|
||||
datdata = DatTools.Parse(_filepath, sysid, srcid, datdata, _logger);
|
||||
DatTools.Parse(_filepath, sysid, srcid, ref datdata, _logger);
|
||||
|
||||
// Sort inputted roms into games
|
||||
SortedDictionary<string, List<Rom>> sortable = new SortedDictionary<string, List<Rom>>();
|
||||
|
||||
@@ -48,7 +48,7 @@ namespace SabreTools.Helper
|
||||
_logger.Log("Beginning stat collection for '" + filename + "'");
|
||||
List<String> games = new List<String>();
|
||||
Dat datdata = new Dat();
|
||||
datdata = DatTools.Parse(filename, 0, 0, datdata, _logger);
|
||||
DatTools.Parse(filename, 0, 0, ref datdata, _logger);
|
||||
SortedDictionary<string, List<Rom>> newroms = DatTools.BucketByGame(datdata.Files, false, true, _logger, false);
|
||||
|
||||
// Output single DAT stats (if asked)
|
||||
|
||||
Reference in New Issue
Block a user