Skip to content

Commit 3bbf451

Browse files
committed
- changed default directory from C: to SystemDirectory, in case a system has no C: directory
1 parent eed1857 commit 3bbf451

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

MovementScriptGenerator/MainForm.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public partial class Main : Form
2626
private string savedChainDirectoryPath = string.IsNullOrEmpty(Settings.Default.ChainFullName) ? string.Empty : Path.GetDirectoryName(Settings.Default.ChainFullName);
2727
private string generateScriptPath = Settings.Default.GenerateScriptPath;
2828
private static readonly char[] illegalCharsForExplorer = "/<>:/\\\"|?*".ToCharArray();
29-
private static readonly string defaultInitialDirectory = "C:\\Users";
29+
private static readonly string defaultInitialDirectory = Path.GetPathRoot(Environment.SystemDirectory);
3030

3131
//Info for Icons
3232
//Icon-Folder-Location changes in release version. That's why we check if we are currently in debug or release mode and change the path accordingly

0 commit comments

Comments
 (0)