mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Delete original file, just in case it isn't overwritten
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user