diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Framework/Util.cs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/OpenSim/Framework/Util.cs b/OpenSim/Framework/Util.cs index 7675be8..6c7af12 100644 --- a/OpenSim/Framework/Util.cs +++ b/OpenSim/Framework/Util.cs | |||
@@ -141,6 +141,11 @@ namespace OpenSim.Framework | |||
141 | public static FireAndForgetMethod DefaultFireAndForgetMethod = FireAndForgetMethod.SmartThreadPool; | 141 | public static FireAndForgetMethod DefaultFireAndForgetMethod = FireAndForgetMethod.SmartThreadPool; |
142 | public static FireAndForgetMethod FireAndForgetMethod = DefaultFireAndForgetMethod; | 142 | public static FireAndForgetMethod FireAndForgetMethod = DefaultFireAndForgetMethod; |
143 | 143 | ||
144 | public static bool IsPlatformMono | ||
145 | { | ||
146 | get { return Type.GetType("Mono.Runtime") != null; } | ||
147 | } | ||
148 | |||
144 | /// <summary> | 149 | /// <summary> |
145 | /// Gets the name of the directory where the current running executable | 150 | /// Gets the name of the directory where the current running executable |
146 | /// is located | 151 | /// is located |
@@ -1338,7 +1343,7 @@ namespace OpenSim.Framework | |||
1338 | ru = "OSX/Mono"; | 1343 | ru = "OSX/Mono"; |
1339 | else | 1344 | else |
1340 | { | 1345 | { |
1341 | if (Type.GetType("Mono.Runtime") != null) | 1346 | if (IsPlatformMono) |
1342 | ru = "Win/Mono"; | 1347 | ru = "Win/Mono"; |
1343 | else | 1348 | else |
1344 | ru = "Win/.NET"; | 1349 | ru = "Win/.NET"; |