Proxy d3d9.dll for auto-loading libraries during LR2's startup.
Almost all of the relevant code was adapted from emskye96's infinitas_chainload project.
The proxy DLL template was generated using maluramichael's dll-proxy-generator project.
- Copy
d3d9.dllandchainload.txtto LR2's directory. - Add a line to the
chainload.txtfile containing a path to a library. For example, if you want to load a file namedLRbase62.dll:
# Comments are prefixed with a # character
# One line corresponds to one path to a library; just add more lines if you want to load multiple libraries
# If the file is in LR2's folder
LRbase62.dll
# Or with a full path
X:\My\Folder\LRbase62.dll
- Launch the game.
You can also load a specific d3d9.dll file instead of the default system one by specifying the following line in chainload.txt:
d3d9_overwrite=<path to external d3d9 DLL>
This is useful if you are running LR2 through some DirectX wrappers, such as dgVoodoo. Before using this option, make sure that the DLL you want to use is 32-bit.