Fix active runtime getting set before applying the config override
This commit is contained in:
+3
-3
@@ -1002,6 +1002,9 @@ int main(int argc, char * argv[])
|
||||
|
||||
CLI11_PARSE(app, argc, argv);
|
||||
|
||||
if (not config_file.empty())
|
||||
configuration::set_config_file(config_file);
|
||||
|
||||
if (*early_active_runtime)
|
||||
{
|
||||
do_active_runtime = false;
|
||||
@@ -1014,9 +1017,6 @@ int main(int argc, char * argv[])
|
||||
if (*no_encrypt)
|
||||
enc_state = wivrn_connection::encryption_state::disabled;
|
||||
|
||||
if (not config_file.empty())
|
||||
configuration::set_config_file(config_file);
|
||||
|
||||
if (*no_publish)
|
||||
publication = wivrn::service_publication::none;
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user