Delete original file, just in case it isn't overwritten

This commit is contained in:
Matt Nadareski
2016-04-19 14:51:55 -07:00
parent 037da6f20a
commit 56f4bd7411

View File

@@ -113,6 +113,17 @@ namespace SabreTools
{
List<RomData> roms = RomManipulation.Parse(filename, 0, 0, logger);
// Remove the original file and inform the user
try
{
File.Delete(filename);
logger.Log("Original file \"" + filename + "\" deleted");
}
catch (Exception ex)
{
logger.Error(ex.ToString());
}
// Trim all file names according to the path that's set
List<RomData> outroms = new List<RomData>();
while (roms.Count != 0)