diff --git a/DatToMiss/DatToMiss.cs b/DatToMiss/DatToMiss.cs index 200f7d4e..ea7f928e 100644 --- a/DatToMiss/DatToMiss.cs +++ b/DatToMiss/DatToMiss.cs @@ -80,11 +80,16 @@ namespace SabreTools return; } - // Make sure that the path provided is real + // Get the output name + string name = Path.GetDirectoryName(input); + if (!name.EndsWith(Path.DirectorySeparatorChar.ToString())) + { + name += Path.DirectorySeparatorChar; + } + name += Path.GetFileNameWithoutExtension(input) + "-miss.txt"; // Read in the roms from the DAT and then write them to the file - Output.WriteToText(Path.GetDirectoryName(input) + Path.DirectorySeparatorChar + Path.GetFileNameWithoutExtension(input) + "-miss.txt", - Path.GetDirectoryName(input), RomManipulation.Parse(input, 0, 0, logger), logger, usegame, prefix, postfix); + Output.WriteToText(name, Path.GetDirectoryName(input), RomManipulation.Parse(input, 0, 0, logger), logger, usegame, prefix, postfix); } } }