OSDN Git Service

* Interpolation timer no longer static
authorLatif Khalifa <latifer@streamgrid.net>
Thu, 23 Jul 2009 22:01:38 +0000 (22:01 +0000)
committerLatif Khalifa <latifer@streamgrid.net>
Thu, 23 Jul 2009 22:01:38 +0000 (22:01 +0000)
* Look for both .exe and .dll for plugins
* Look for plugins in the same dir Radegast.exe is

git-svn-id: https://radegast.googlecode.com/svn/trunk@119 f7a694da-4d33-11de-9ad6-1127a62b9fcd

Radegast/Core/RadegastInstance.cs

index c7733ef..1b8e568 100644 (file)
@@ -114,9 +114,8 @@ namespace Radegast
         {\r
             InitializeLoggingAndConfig();\r
 \r
-            Settings.USE_INTERPOLATION_TIMER = false;\r
-            \r
             client = new GridClient();\r
+            client.Settings.USE_INTERPOLATION_TIMER = false;\r
             client.Settings.ALWAYS_REQUEST_OBJECTS = true;\r
             client.Settings.ALWAYS_DECODE_OBJECTS = true;\r
             client.Settings.OBJECT_TRACKING = true;\r
@@ -160,13 +159,13 @@ namespace Radegast
 \r
         private void ScanAndLoadPlugins()\r
         {\r
-            string dirName = Path.Combine(Application.StartupPath, "plugins");\r
+            string dirName = Application.StartupPath;\r
 \r
             if (!Directory.Exists(dirName)) return;\r
 \r
             foreach (string loadfilename in Directory.GetFiles(dirName))\r
             {\r
-                if (loadfilename.ToLower().EndsWith(".dll"))\r
+                if (loadfilename.ToLower().EndsWith(".dll") || loadfilename.ToLower().EndsWith(".exe"))\r
                 {\r
                     try\r
                     {\r