Skip to content

Commit 1a7da6c

Browse files
committed
Distro config for AppMan...
1 parent ca1ba24 commit 1a7da6c

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

External/Tools/AppMan/MainForm.cs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,11 @@ public partial class MainForm : Form, IMessageFilter
4444
*/
4545
public static Int32 LINK_MARGIN = 4;
4646

47+
/**
48+
* Static constant for current distribution
49+
*/
50+
public static String DISTRO_NAME = "FlashDevelop";
51+
4752
/**
4853
* Static constant for exposed config groups (separated with ,)
4954
*/
@@ -935,8 +940,8 @@ private void RunExecutableProcess(String file)
935940
#if FLASHDEVELOP
936941
if (file.ToLower().EndsWith(".fdz"))
937942
{
938-
String fd = Path.Combine(PathHelper.GetExeDirectory(), @"..\..\FlashDevelop.exe");
939-
Boolean wait = Process.GetProcessesByName("FlashDevelop").Length == 0;
943+
String fd = Path.Combine(PathHelper.GetExeDirectory(), @"..\..\" + DISTRO_NAME + ".exe");
944+
Boolean wait = Process.GetProcessesByName(DISTRO_NAME).Length == 0;
940945
if (File.Exists(fd))
941946
{
942947
Process.Start(Path.GetFullPath(fd), file + " -silent -reuse");

External/Tools/AppMan/Utilities/ArgProcessor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public static String ProcessArguments(String data)
2020
if (!File.Exists(local))
2121
{
2222
String userAppDir = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData);
23-
String fdUserPath = Path.Combine(userAppDir, "FlashDevelop");
23+
String fdUserPath = Path.Combine(userAppDir, MainForm.DISTRO_NAME);
2424
data = data.Replace("$(BaseDir)", fdUserPath);
2525
}
2626
else data = data.Replace("$(BaseDir)", Path.GetDirectoryName(local));
Binary file not shown.

0 commit comments

Comments
 (0)