From 756737e46d57d0949c8b2ed18d46002661aab7b7 Mon Sep 17 00:00:00 2001 From: Taka Date: Sun, 11 Dec 2016 19:48:46 +1000 Subject: [PATCH] Allow the config file to be specified in the command line. --- MainApp/Program.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/MainApp/Program.cs b/MainApp/Program.cs index 8f6af9e..f666ccd 100644 --- a/MainApp/Program.cs +++ b/MainApp/Program.cs @@ -39,6 +39,8 @@ namespace MouseInterception { // load the app config string fname = getAppRelativePath( "config.xml" ) ; // FIXME! this s.b. in the user's AppData folder + if ( args.Length >= 1 ) + fname = args[0] ; mAppConfig = new AppConfig( fname ) ; // load the debug config