Report an error if the required native Windows ODE library can't be found.

xassetservice
Justin Clark-Casey (justincc) 2012-02-18 02:52:29 +00:00
parent 4cc97df8f3
commit 9846a1e56e
1 changed files with 4 additions and 1 deletions

View File

@ -75,7 +75,10 @@ namespace OpenSim.Region.Physics.OdePlugin
nativeLibraryPath = "lib32/ode.dll";
m_log.DebugFormat("[ODE PLUGIN]: Loading native Windows ODE library at {0}", nativeLibraryPath);
Util.LoadLibrary(nativeLibraryPath);
if (Util.LoadLibrary(nativeLibraryPath) == IntPtr.Zero)
m_log.ErrorFormat(
"[ODE PLUGIN]: Couldn't find native Windows ODE library at {0}", nativeLibraryPath);
}
// Initializing ODE only when a scene is created allows alternative ODE plugins to co-habit (according to