How to properly override DLL

Questions about Wine on Linux
Locked
TempuraShrimp
Newbie
Newbie
Posts: 2
Joined: Sun Jul 05, 2020 6:13 pm

How to properly override DLL

Post by TempuraShrimp »

Hello and good evening. I'm new to Wine and just finished installing my first game with it (The Witcher: Enhanced Edition). I noticed quite a lot of graphical artifacts indoors, so I went to WineHQ to search for possible workarounds, and the issue seems to be related to the d3d9x_35.dll used by the game. (As seen here https://bugs.winehq.org/show_bug.cgi?id=46553).

Anyway I tried overriding to the native DLL using winecfg -> libraries, but the game crashed on startup. Tried downloading the DLL using the commands

Code: Select all

winetricks d3d9x_35.dll
and

Code: Select all

winetricks d3d9x
, and the terminal output said something about it setting the DLL for override. Then I tried to override it again through winecfg, but the game still crashes on me.

The bug report describes the exact same issue I have, so I think I must be doing something wrong. I'd appreciate any help, thank you in advance :D
spoon0042
Level 6
Level 6
Posts: 572
Joined: Thu Dec 24, 2009 11:00 am

Re: How to properly override DLL

Post by spoon0042 »

winetricks should set the override itself. The name of the dll is d3dx9 though unless you made the typo only in your post:

Code: Select all

winetricks d3dx9_35
TempuraShrimp
Newbie
Newbie
Posts: 2
Joined: Sun Jul 05, 2020 6:13 pm

Re: How to properly override DLL

Post by TempuraShrimp »

spoon0042 wrote: Mon Jul 06, 2020 11:38 am winetricks should set the override itself. The name of the dll is d3dx9 though unless you made the typo only in your post:

Code: Select all

winetricks d3dx9_35
Yes, that was indeed a typo. Anyway I finally figured out how to solve my issue!. Turns out TWEE is a 32-bit only program, so it was just a matter of placing the corresponding 32-bit DLL file beside it. I think Winetricks might've had tried to override d3dx9_35 with a 64-bit version of the DLL though. I wish the bug report would've had been more specific regarding this.

Just to be sure, would Winetricks have installed the 32-bit DLL file automatically if I'd had used a 32-bit Wine prefix?
spoon0042
Level 6
Level 6
Posts: 572
Joined: Thu Dec 24, 2009 11:00 am

Re: How to properly override DLL

Post by spoon0042 »

winetricks should have installed both the 32- and 64-bit dlls. It's always possible there was some weird issue somewhere though and sometimes it's easier / safer to use a 32-bit prefix. But if things are working don't worry about it.
Locked