Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Maddie:dxvk-gplasync
dxvk-gplasync
global-dxvk.conf.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File global-dxvk.conf.patch of Package dxvk-gplasync
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
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor