Directories don't work the same in Mono

This commit is contained in:
Matt Nadareski
2016-04-20 12:09:51 -07:00
parent eca0015108
commit 292007b06d

View File

@@ -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);
}
}
}