OSDN Git Service

Don't use inventory caps when running under mono.
authorLatif Khalifa <latifer@streamgrid.net>
Sat, 9 Apr 2011 13:05:17 +0000 (13:05 +0000)
committerLatif Khalifa <latifer@streamgrid.net>
Sat, 9 Apr 2011 13:05:17 +0000 (13:05 +0000)
git-svn-id: https://radegast.googlecode.com/svn/trunk@821 f7a694da-4d33-11de-9ad6-1127a62b9fcd

Radegast/GUI/Consoles/Inventory/InventoryConsole.cs
Radegast/RadegastBuild.cs

index aa71f37..eb052d6 100644 (file)
@@ -716,6 +716,19 @@ namespace Radegast
             }
         }
 
+        bool UseInventoryCaps
+        {
+            get
+            {
+                bool res =
+                    client.Network.CurrentSim != null
+                    && client.Network.CurrentSim.Caps != null
+                    && client.Network.CurrentSim.Caps.CapabilityURI("FetchInventoryDescendents2") != null
+                    && !instance.MonoRuntime;
+                return res;
+            }
+        }
+
         private void StartTraverseNodes()
         {
             if (!client.Network.CurrentSim.Caps.IsEventQueueRunning)
@@ -739,7 +752,7 @@ namespace Radegast
             TreeUpdateInProgress = true;
             TreeUpdateTimer.Start();
 
-            if (null == client.Network.CurrentSim.Caps.CapabilityURI("FetchInventoryDescendents2"))
+            if (!UseInventoryCaps)
             {
                 TraverseNodes(Inventory.RootNode);
             }
@@ -1017,7 +1030,7 @@ namespace Radegast
                     fetchedFolders.Add(folderID);
                 }
 
-                if (null == client.Network.CurrentSim.Caps.CapabilityURI("FetchInventoryDescendents2"))
+                if (!UseInventoryCaps)
                 {
                     client.Inventory.RequestFolderContents(folderID, ownerID, true, true, InventorySortOrder.ByDate);
                 }
index 3e4db59..79fa93b 100644 (file)
@@ -1,5 +1,5 @@
 // Autogenerated: run updatebuildnr.bat/sh to update 
 namespace Radegast 
 { 
-    public static class RadegastBuild { public static int CurrentRev = 803; } 
+    public static class RadegastBuild { public static int CurrentRev = 821; } 
 }