mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Directories don't work the same in Mono
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user