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 3b124d6
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/util/util_env.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

0 comments on commit 3b124d6

Please sign in to comment.