Skip to content

Commit e339b7c

Browse files
committed
[FlashpointInstaller] Don't allow Flashpoint to be installed on top of copies older than version 12
1 parent 0768ae0 commit e339b7c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

FlashpointInstaller/src/Common.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ public static TreeNode AddNodeToList(XmlNode child, TreeNodeCollection parent)
244244
// Checks if specified Flashpoint destination path is valid
245245
public static bool VerifyDestinationPath(string path)
246246
{
247-
bool alreadyExists = false;
247+
bool alreadyExists = File.Exists(Path.Combine(path, "Launcher", "Flashpoint.exe"));
248248

249249
IterateXML(XmlTree.GetElementsByTagName("list")[0].ChildNodes, node =>
250250
{
@@ -270,7 +270,7 @@ public static bool VerifyDestinationPath(string path)
270270
if (!Path.IsPathRooted(path))
271271
{
272272
MessageBox.Show(
273-
$"The specified directory is not valid! Choose a different folder.",
273+
"The specified directory is not valid! Choose a different folder.",
274274
"Error", MessageBoxButtons.OK, MessageBoxIcon.Error
275275
);
276276

0 commit comments

Comments
 (0)