Perforce's call to SetDllDirectory() is interfering with other Packages
We've just integrated Audiokinetic's Wwise audio package for Unity and found that it disagrees with Perforce changing the default DLL directory.
The error we're getting is:
Failed to load 'Assets/Wwise/Deployment/Plugins/Windows/x86/Profile/AkSoundEngine.dll' with error 'The specified module could not be found.
', GetDllDirectory returned 'C:\Path\to\Project\Assets\P4Connect\Editor'. If GetDllDirectory returned non empty path, check that you're using SetDirectoryDll correctly.
AkInitializer:Awake() (at Assets/Wwise/Deployment/Components/AkInitializer.cs:171)
AkInitializer:Awake() (at Assets/Wwise/Deployment/Components/AkInitializer.cs:93)
Is it possible to restore the DLL directory after it's loaded the relevant DLLs?
This is so heinous a bug we've had to completely remove the Perforce integration in order to continue using Wwise.
Perforce server version "p4 -Ztag info"
: ... serverVersion P4D/NTX64/2014.2/978861 (2014/12/19)
P4Connect release (look at the bottom right corner of the Perforce Configuration window)
: P4Connect 2.7 betaR.12101
: Unity 5.0.0b22 (32 bit)
Operating system version, 32bit or 64bit
: Windows 7, SP1, 64 bit.