Skip to content

Commit

Permalink
patches: add dxvk fixup for secret world: legends
Browse files Browse the repository at this point in the history
  • Loading branch information
GloriousEggroll committed Dec 2, 2022
1 parent 5fdfaf6 commit b4dabc0
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
20 changes: 20 additions & 0 deletions patches/dxvk/secret-world.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
diff --git a/src/util/config/config.cpp b/src/util/config/config.cpp
index f3aaed0f..45a71721 100644
--- a/src/util/config/config.cpp
+++ b/src/util/config/config.cpp
@@ -681,9 +681,14 @@ namespace dxvk {
{ R"(\\bms\.exe$)", {{
{ "d3d9.customVendorId", "10de" },
}} },
+ /* Secret World: Legends *
+ * Launcher needs shaderModel 2 *
+ * to not crash */
+ { R"(\\ClientPatcher\.exe$)", {{
+ { "d3d9.shaderModel", "2" },
+ }} },
}};

-
static bool isWhitespace(char ch) {
return ch == ' ' || ch == '\x9' || ch == '\r';
}
5 changes: 4 additions & 1 deletion patches/protonprep-valve-staging.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@
patch -Np1 < ../patches/dxvk/2675.patch

echo "DXVK: add dxvk async patch"
patch -Np1 < ../patches/dxvk/dxvk-async.patch
patch -Np1 < ../patches/dxvk/dxvk-async.patch

echo "DXVK: Fix Secret World: Legends patcher crash"
patch -Np1 < ../patches/dxvk/secret-world.patch
cd ..

### END PREP SECTION ###
Expand Down

0 comments on commit b4dabc0

Please sign in to comment.