[c-host] load config from looking-glass-host.ini if available

This commit is contained in:
Geoffrey McRae 2019-05-11 18:23:06 +10:00
parent 785bc33192
commit 51ddb62126
2 changed files with 4 additions and 1 deletions

View File

@ -1 +1 @@
a12-178-g522bacb1f0+1 a12-179-g785bc33192+1

View File

@ -268,6 +268,9 @@ int app_main(int argc, char * argv[])
if (CaptureInterfaces[i]->initOptions) if (CaptureInterfaces[i]->initOptions)
CaptureInterfaces[i]->initOptions(); CaptureInterfaces[i]->initOptions();
// try load values from a config file
option_load("looking-glass-host.ini");
// parse the command line arguments // parse the command line arguments
if (!option_parse(argc, argv)) if (!option_parse(argc, argv))
{ {