mirror of
https://github.com/Prof9/WfcReplay.git
synced 2026-09-07 17:45:32 -05:00
use System.IO.Path.DirectorySeparatorChar instead of hardcoded \\ for mono UNIX compatility
This commit is contained in:
@@ -74,7 +74,7 @@ namespace WfcReplay
|
||||
fileName = makeFileNameSafe(fileName);
|
||||
writeFile(fileName, outStream);
|
||||
Console.WriteLine("Success!");
|
||||
Console.WriteLine("Code written to " + Directory.GetCurrentDirectory() + "\\" + fileName + ".");
|
||||
Console.WriteLine("Code written to " + Directory.GetCurrentDirectory() + System.IO.Path.DirectorySeparatorChar + fileName + ".");
|
||||
}
|
||||
else if (!checkMode)
|
||||
{
|
||||
@@ -172,7 +172,7 @@ namespace WfcReplay
|
||||
if (local)
|
||||
#endif
|
||||
{
|
||||
tempFolderPath = @"temp\";
|
||||
tempFolderPath = @"temp"+System.IO.Path.DirectorySeparatorChar;
|
||||
if (Directory.Exists(tempFolderPath))
|
||||
{
|
||||
try
|
||||
@@ -184,7 +184,7 @@ namespace WfcReplay
|
||||
}
|
||||
else
|
||||
{
|
||||
tempFolderPath = Path.GetTempPath() + @"WfcReplay\";
|
||||
tempFolderPath = Path.GetTempPath() + @"WfcReplay"+System.IO.Path.DirectorySeparatorChar;
|
||||
}
|
||||
tempFolderPath = Directory.CreateDirectory(tempFolderPath).FullName;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user