Difference between revisions of "Installing dlls"
(Created page with "== With winetricks or protontricks == Open Winetricks or Protontricks -> select default wineprefix -> install dll -> select the dll you want to install, click ok. == Manual == Download the dll. You can either download it from some website, or you can download an exe that contains it. If you downloaded an exe, extract the dll with 7zip: <code>7z e some_program.exe</code> Copy the dll in the game folder, and set a dll override for it. ===DLL overrides=== More info on [h...") |
|||
Line 1: | Line 1: | ||
== With winetricks or protontricks == | == With winetricks or protontricks == | ||
Open Winetricks or Protontricks -> select default wineprefix -> install dll -> select the dll you want to install, click ok. | Open [[Winetricks|Winetricks or Protontricks]] -> select default wineprefix -> install dll -> select the dll you want to install, click ok. | ||
== Manual == | == Manual == |
Latest revision as of 07:41, 4 July 2022
With winetricks or protontricks
Open Winetricks or Protontricks -> select default wineprefix -> install dll -> select the dll you want to install, click ok.
Manual
Download the dll. You can either download it from some website, or you can download an exe that contains it. If you downloaded an exe, extract the dll with 7zip: 7z e some_program.exe
Copy the dll in the game folder, and set a dll override for it.
DLL overrides
More info on winehq.
The game can either use native dlls that come with the game, or use builtin dlls that come with wine. It (sometimes?/usually?) uses only the builtin dlls.
On Windows, the game would do it the other way around, and first use all dlls in the game directory, and only if the dll is not there, look somewhere else.
Now if you put a different dll from a mod inside the game directory, this will not (not always?) work.
That's why you have to tell wine, that it should use the dll from the mod.
Example
For example, if you want to tell wine to use the d3dcompiler_47.dll that's in your game folder, and only use the builtin dll if it can't find any dll in the game folder, you would do the following:
Open Lutris, click your game, on the bottom, click the up-arrow right next to the wine bottle icon, click Wine configuration
, click Libraries
, and
- insert the name of the dll (without the .dll)
d3dcompiler_47
in the text box underNew override for library
. - select it in the list, click
Edit
and selectnative, then builtin
Alternatively, you could also set WINEDLLOVERRIDES="d3dcompiler_47=n,b"
as an environment variable.