diff options
Diffstat (limited to 'OpenSim/Region/Physics/BulletSPlugin/BSAPIUnman.cs')
-rwxr-xr-x | OpenSim/Region/Physics/BulletSPlugin/BSAPIUnman.cs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/OpenSim/Region/Physics/BulletSPlugin/BSAPIUnman.cs b/OpenSim/Region/Physics/BulletSPlugin/BSAPIUnman.cs index 83e12ba..8c6e7d6 100755 --- a/OpenSim/Region/Physics/BulletSPlugin/BSAPIUnman.cs +++ b/OpenSim/Region/Physics/BulletSPlugin/BSAPIUnman.cs | |||
@@ -31,6 +31,8 @@ using System.Runtime.InteropServices; | |||
31 | using System.Security; | 31 | using System.Security; |
32 | using System.Text; | 32 | using System.Text; |
33 | 33 | ||
34 | using OpenSim.Framework; | ||
35 | |||
34 | using OpenMetaverse; | 36 | using OpenMetaverse; |
35 | 37 | ||
36 | namespace OpenSim.Region.Physics.BulletSPlugin | 38 | namespace OpenSim.Region.Physics.BulletSPlugin |
@@ -141,8 +143,14 @@ public override string BulletEngineVersion { get; protected set; } | |||
141 | public BSAPIUnman(string paramName, BSScene physScene) | 143 | public BSAPIUnman(string paramName, BSScene physScene) |
142 | { | 144 | { |
143 | PhysicsScene = physScene; | 145 | PhysicsScene = physScene; |
146 | |||
144 | // Do something fancy with the paramName to get the right DLL implementation | 147 | // Do something fancy with the paramName to get the right DLL implementation |
145 | // like "Bullet-2.80-OpenCL-Intel" loading the version for Intel based OpenCL implementation, etc. | 148 | // like "Bullet-2.80-OpenCL-Intel" loading the version for Intel based OpenCL implementation, etc. |
149 | if (Util.IsWindows()) | ||
150 | Util.LoadArchSpecificWindowsDll("BulletSim.dll"); | ||
151 | // If not Windows, loading is performed by the | ||
152 | // Mono loader as specified in | ||
153 | // "bin/Physics/OpenSim.Region.Physics.BulletSPlugin.dll.config". | ||
146 | } | 154 | } |
147 | 155 | ||
148 | // Initialization and simulation | 156 | // Initialization and simulation |