Skip to content

Commit

Permalink
util: Fake GPU queries success for XDefiant
Browse files Browse the repository at this point in the history
  • Loading branch information
jp7677 committed May 26, 2024
1 parent 024ecaa commit 3b3b88b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/util/util_env.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -154,12 +154,22 @@ 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 XDefiant.exe/XDefiant_BE.exe (XDefiant)");
return true;
}

return false;
}
}

0 comments on commit 3b3b88b

Please sign in to comment.