We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0b4e705 commit 9571f13Copy full SHA for 9571f13
src/Common.cs
@@ -335,8 +335,18 @@ public static void DeleteFileAndDirectories(string file)
335
// Checks if specified Flashpoint destination path is valid, and optionally updates its respective textbox
336
public static bool VerifyDestinationPath(string path, bool updateText)
337
{
338
- string errorPath;
+ if (!Path.IsPathRooted(path))
339
+ {
340
+ MessageBox.Show(
341
+ $"The specified directory is not valid! Choose a different folder.",
342
+ "Error", MessageBoxButtons.OK, MessageBoxIcon.Error
343
+ );
344
345
+ return false;
346
+ }
347
+
348
+ string errorPath;
349
350
if (path.StartsWith(Environment.ExpandEnvironmentVariables("%ProgramW6432%"))
351
|| path.StartsWith(Environment.GetFolderPath(Environment.SpecialFolder.ProgramFilesX86)))
352
0 commit comments