@@ -33,9 +33,11 @@ public partial class MainForm : Form, IMessageFilter
33
33
private Queue < String > fileQueue ;
34
34
private LocaleData localeData ;
35
35
private Boolean localeOverride ;
36
+ private Boolean configOverride ;
36
37
private String [ ] notifyPaths ;
37
38
private Boolean haveUpdates ;
38
39
private Boolean checkOnly ;
40
+ private String argsConfig ;
39
41
40
42
/**
41
43
* Static link label margin constant
@@ -129,6 +131,12 @@ private void CheckArgs(String[] args)
129
131
this . localeId = arg . Trim ( ) . Substring ( "-locale=" . Length ) ;
130
132
this . localeOverride = true ;
131
133
}
134
+ // Handle config values
135
+ if ( arg . Trim ( ) . Contains ( "-config=" ) )
136
+ {
137
+ this . argsConfig = arg . Trim ( ) . Substring ( "-config=" . Length ) ;
138
+ this . configOverride = true ;
139
+ }
132
140
}
133
141
}
134
142
@@ -238,6 +246,10 @@ private void InitializeSettings()
238
246
if ( ! this . localeOverride ) this . localeId = settings . Locale ;
239
247
this . notifyPaths = settings . Paths ;
240
248
}
249
+ if ( this . configOverride )
250
+ {
251
+ PathHelper . CONFIG_ADR = this . argsConfig ;
252
+ }
241
253
if ( ! Directory . Exists ( PathHelper . LOG_DIR ) )
242
254
{
243
255
Directory . CreateDirectory ( PathHelper . LOG_DIR ) ;
0 commit comments