summaryrefslogtreecommitdiff
path: root/Aktywator
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2017-07-27 14:03:25 +0200
committeremkael <emkael@tlen.pl>2017-07-27 14:03:25 +0200
commitccac4f82996ef1a086de2b94dbac981bf9794494 (patch)
tree64568c75fa8992722b3f95d14f844f7545229815 /Aktywator
parentaecbbb3b8e1f8583bb70583b6329d7151d1e0a4a (diff)
runBCS() is capable of running BCS from any specified location, defaulting to previously hard-coded value
Diffstat (limited to 'Aktywator')
-rw-r--r--Aktywator/Bws.cs9
1 files changed, 8 insertions, 1 deletions
diff --git a/Aktywator/Bws.cs b/Aktywator/Bws.cs
index 335bc11..5d6e063 100644
--- a/Aktywator/Bws.cs
+++ b/Aktywator/Bws.cs
@@ -21,6 +21,7 @@ namespace Aktywator
public List<Setting> settings;
private MainForm main;
public bool settingsChanged = false;
+ private static string applicationPath = Common.ProgramFilesx86() + "\\Bridgemate Pro\\";
public Bws(string filename, MainForm main)
{
@@ -137,9 +138,15 @@ namespace Aktywator
return this.getSectionList("HandRecord");
}
+
+ internal static void setAppLocation(string appPath)
+ {
+ applicationPath = appPath;
+ }
+
public void runBCS()
{
- string app = Common.ProgramFilesx86() + "\\Bridgemate Pro\\BMPro.exe";
+ string app = applicationPath + "BMPro.exe";
string param = "";
param += " /f[" + filename + " ]";
param += " /s";