0
0

Hello.

I’ve been messing around with implementing FMod into Half-Life 2’s SDK and all has gone quite well other than one thing – the DLL loading process.

The Steam platform under which Half-Life 2 runs uses a rather unorthodox filesystem and therefore it is quite undesirable that the DLL need be placed in the same directory as the main game executable.

I would rather not use Windows’ LoadLibrary and GetProcAddress functions.

I was wondering if there’s any other way to change the search paths for the FMOD DLL.

I’m using MSVC++ 2003 and FMOD Ex 4.04.06, the combined (no plugins) DLL.

  • You must to post comments
0
0

You can use SetCurrentDirectory to set the new path for the current process.

  • You must to post comments
0
0

Thanks, I set the DLL to be delay loaded and called SetCurrentDirectory before calling any FMOD functions and now it loads just fine.

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.