Skip to content

Load custom DLL with D2GL

Bayaraa edited this page Jan 13, 2024 · 5 revisions

There are 2 options for loading custom DLLs with D2GL.

  • load_dlls_early : Right after wrapper DLL attached to game.
  • load_dlls_late : Right after game window created (which is slightly later).

Config example

Load multiple DLLs with comma-delimited.

load_dlls_early=example1.dll,example2.dll

Load DLL and call function from loaded DLL.
Separate DLL name, calling convention and function name with colon.

load_dlls_early=example1.dll:stdcall:function_name

** there are 3 calling conventions you can use cdecl stdcall fastcall.
** function must be without any parameter (void).

Clone this wiki locally