diff --git a/src/util/util_env.cpp b/src/util/util_env.cpp index 7af4dc88..39aff344 100644 --- a/src/util/util_env.cpp +++ b/src/util/util_env.cpp @@ -154,12 +154,23 @@ namespace dxvk::env { || getExecutableName() == std::string("tlou-i-l.exe"); } + + bool isXDefiant() { + return getExecutableName() == std::string("XDefiant.exe") + || getExecutableName() == std::string("XDefiant_BE.exe"); + } + bool needsSucceededGpuQuery() { if (isTheLastOfUsPartOne()) { log::write("Faking GPU query success due to detecting tlou-i.exe/tlou-i-l.exe"); return true; } + if (isXDefiant()) { + log::write("Faking GPU query success due to detecting upc.exe (XDefiant)"); + return true; + } + return false; } }