Fix active runtime getting set before applying the config override

This commit is contained in:
peelz
2025-03-23 23:16:57 +01:00
committed by xytovl
parent 98accc1219
commit e23d24c37d
+3 -3
View File
@@ -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