Allow multiple configuration files

Will merge contents from
@CMAKE_INSTALL_PREFIX@/share/wivrn/config.json
/etc/wivrn/config.json
~/.config/wivrn.config.json (XDG_CONFIG_DIR in fact)

If -f option is provided, just parse that file, don't merge anything
This commit is contained in:
Patrick Nicolas
2025-07-06 10:22:25 +02:00
parent fbe5430dc2
commit 11cd9235d9
11 changed files with 99 additions and 53 deletions
+1 -1
View File
@@ -76,7 +76,7 @@ std::filesystem::path active_runtime::openvr_compat_path()
return std::filesystem::path();
},
},
configuration::read_user_configuration().openvr_compat_path);
configuration().openvr_compat_path);
}
static std::filesystem::path backup_name(std::filesystem::path file)