mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Make it have one less complex part
This commit is contained in:
@@ -112,11 +112,12 @@ namespace SabreTools
|
||||
}
|
||||
|
||||
// Now write the file out accordingly
|
||||
Output.WriteToDat(RomManipulation.GetDatName(filename, _logger), RomManipulation.GetDatDescription(filename, _logger),
|
||||
"", "", "", "", _forceunpack, !RomManipulation.IsXmlDat(filename), Path.GetDirectoryName(filename), outroms, _logger);
|
||||
string datName = RomManipulation.GetDatName(filename, _logger);
|
||||
string datDescription = RomManipulation.GetDatDescription(filename, _logger);
|
||||
Output.WriteToDat(datName, datDescription, "", "", "", "", _forceunpack, !RomManipulation.IsXmlDat(filename), Path.GetDirectoryName(filename), outroms, _logger);
|
||||
|
||||
// Remove the original file if different and inform the user
|
||||
if (filename != RomManipulation.GetDatDescription(filename, _logger) + (RomManipulation.IsXmlDat(filename) ? ".xml" : ".dat"))
|
||||
if (filename != datDescription + (RomManipulation.IsXmlDat(filename) ? ".xml" : ".dat"))
|
||||
{
|
||||
try
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user