mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
More code cleanup
This change comprises of multiple smaller changes: - Convert all WriteToDat to WriteToDatFromDict, including MissFile - Change obsolete Import to use updated ParseDict - Remove all references to Parse - Rename all references to "Dict" specific code to shorter names - Remove more unused methods rendered obsolete by other changes
This commit is contained in:
@@ -98,7 +98,7 @@ namespace SabreTools
|
||||
ForcePacking = (_forceunpack ? ForcePacking.Unzip : ForcePacking.None),
|
||||
OutputFormat = RomManipulation.GetOutputFormat(filename),
|
||||
};
|
||||
datdata = RomManipulation.ParseDict(filename, 0, 0, datdata, _logger);
|
||||
datdata = RomManipulation.Parse(filename, 0, 0, datdata, _logger);
|
||||
|
||||
// Trim all file names according to the path that's set
|
||||
foreach (string key in datdata.Roms.Keys)
|
||||
@@ -130,7 +130,7 @@ namespace SabreTools
|
||||
}
|
||||
|
||||
// Now write the file out accordingly
|
||||
Output.WriteToDatFromDict(datdata, Path.GetDirectoryName(filename), _logger);
|
||||
Output.WriteDatfile(datdata, Path.GetDirectoryName(filename), _logger);
|
||||
|
||||
// Remove the original file if different and inform the user
|
||||
if (filename != datdata.Description + (RomManipulation.GetOutputFormat(filename) == OutputFormat.Xml ? ".xml" : ".dat"))
|
||||
|
||||
Reference in New Issue
Block a user