File global-dxvk.conf.patch of Package dxvk-gplasync-x86-64-v3
src/util/config/config.cpp | 15 +++++++++++++--
1 file changed, 13 insertions(+), 2 deletions(-)
diff --git a/src/util/config/config.cpp b/src/util/config/config.cpp
index 280ff699..bf789e55 100644
--- a/src/util/config/config.cpp
+++ b/src/util/config/config.cpp
@@ -1119,8 +1119,19 @@ namespace dxvk {
// Open the file if it exists
std::ifstream stream(str::topath(filePath.c_str()).c_str());
- if (!stream && confLine.empty())
- return config;
+ if (!stream && confLine.empty()) {
+ filePath = "/home/" + env::getEnvVar("USER") + "/.config/dxvk.conf";
+ stream.open(str::topath(filePath.c_str()).c_str());
+#ifdef _WIN32
+ if (!stream) {
+ filePath = env::getEnvVar("APPDATA") + "/dxvk.conf";
+ stream.open(str::topath(filePath.c_str()).c_str());
+ }
+#endif
+
+ if (!stream)
+ return config;
+ }
// Initialize parser context
ConfigContext ctx;
--
2.41.0