Force application to use dll file?

Questions about Wine on Linux
Locked
LateralShift
Level 2
Level 2
Posts: 27
Joined: Mon Nov 16, 2020 4:06 pm

Force application to use dll file?

Post by LateralShift »

I am trying to run an old game with an open-source widescreen fix. This fix requires that the user put a custom version of dinput8.dll in the application's directory. Is it possible to force the game to use this specific dll file?
jkfloris
Level 12
Level 12
Posts: 3136
Joined: Thu Aug 14, 2014 10:10 am

Re: Force application to use dll file?

Post by jkfloris »

This is possible with the WINEDLLOVERRIDES variable

Code: Select all

WINEDLLOVERRIDES=dinput8=n wine program.exe
Or with winecfg → Libraries → New override for library → dinput8 → Add
LateralShift
Level 2
Level 2
Posts: 27
Joined: Mon Nov 16, 2020 4:06 pm

Re: Force application to use dll file?

Post by LateralShift »

Awesome. Thank you.
Locked