Pathing wasn't working correctly

This commit is contained in:
Matt Nadareski
2016-04-20 13:29:04 -07:00
parent ec54249ab6
commit 78fcdbf792

View File

@@ -92,13 +92,11 @@ namespace SabreTools
return; return;
} }
// Get the full input name
input = Path.GetFullPath(input);
// Get the output name // Get the output name
string name = Path.GetDirectoryName(input); string name = Path.GetFileNameWithoutExtension(input) + "-miss.txt";
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 // Read in the roms from the DAT and then write them to the file
Output.WriteToText(name, Path.GetDirectoryName(input), RomManipulation.Parse(input, 0, 0, logger), logger, usegame, prefix, postfix, addext, repext, quotes); Output.WriteToText(name, Path.GetDirectoryName(input), RomManipulation.Parse(input, 0, 0, logger), logger, usegame, prefix, postfix, addext, repext, quotes);