From 96f31d52af45b4206ba174a4c01e2f8c3670486c Mon Sep 17 00:00:00 2001 From: Max Kross Date: Tue, 11 Jun 2024 11:35:44 +0200 Subject: [PATCH] more methods to override DLL (#13) --- articles/advanced/steam_interop.md | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/articles/advanced/steam_interop.md b/articles/advanced/steam_interop.md index e3404549..33e20c64 100644 --- a/articles/advanced/steam_interop.md +++ b/articles/advanced/steam_interop.md @@ -93,7 +93,15 @@ Setting up BepInEx with Wine requires primarily configuring the DLL forwarding to work correctly. **We strongly recommend to use Proton**, but it is not an absolute requirement. -### Open winecfg for the target game +### Adding the DLL override +#### Using the Steam launch options + +If you are using proton with steam, you can specify the DLL override in the launch options: +```WINEDLLOVERRIDES="winhttp.dll=n,b" %command%``` + +With this method you can ignore the last steps since you are not using winecfg. (Thanks to the comments on [ProtonDB](https://www.protondb.com/app/1966720) for this method!) + +#### Using protontricks to open winecfg With proton the easiest way to do so is via [`protontricks`](https://github.com/Matoking/protontricks) @@ -116,7 +124,15 @@ Finally, select `Run winecfg` and click OK: ![Select "Run winecfg" and click OK](images/protontricks_winecfg.png) -This will open winecfg. +This will open winecfg. Proceed to the last step to configure the proxy to run. + +#### Using the command line to open winecfg + +To open winecfg from the command line for your games prefix use the following command: + +```env WINEPREFIX="/compatdata//pfx" WINEPATH="/common//files/bin/wine64" winecfg``` + +Replace \ with the path to your steamapps folder, \ with the appid of the game and \ with the folder name of the proton version to use. ### Configure proxy to run @@ -128,4 +144,4 @@ select `winhttp` and `Click` add: ![Add "winhttp" library override in winecfg Libraries tab](images/winecfg_add_lib.png) -Finally click `Apply` and you're done. Running the game should now run BepInEx. \ No newline at end of file +Finally click `Apply` and you're done. Running the game should now run BepInEx.