A quick/simple way of having plugins get loaded into (any game probably) Borderlands 3.
D3D11.zip
from ReleasesBorderlands3\OakGame\Binaries\Win64
Borderlands3\OakGame\Binaries\Win64\Plugins
If you need to delay the loading of your DLL, edit Plugins\pluginLoader.ini
to contain something like:
[PluginLoader]
[HelloWorldDLL.dll]
delaySeconds=1
where delaySeconds
is how many seconds you want to delay loading (A better solution would generally be hooking into stuff btw)
As Borderlands 3 is compiled for x64 all of your libraries need to be x64 (or x64 compatible)
If you want a default way to setup your solution, take a look at HelloWorldDLL
or IntroLogoRemover
in the Source
If you wanna see a debug console without having to call AllocConsole()
yourself and do some checking, launch the game with the argument --debug