From 5fd16d49c45152d7cb9a369e57281caacb8d0f74 Mon Sep 17 00:00:00 2001 From: "Douglas R. Miles" Date: Fri, 28 Aug 2009 19:30:12 +0000 Subject: [PATCH] Making RadegastInstance public.. also added the GridClient to the constructor git-svn-id: https://radegast.googlecode.com/svn/trunk@174 f7a694da-4d33-11de-9ad6-1127a62b9fcd --- Radegast/Core/RadegastInstance.cs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Radegast/Core/RadegastInstance.cs b/Radegast/Core/RadegastInstance.cs index e0d1b60..076c393 100644 --- a/Radegast/Core/RadegastInstance.cs +++ b/Radegast/Core/RadegastInstance.cs @@ -57,7 +57,7 @@ namespace Radegast { if (globalInstance == null) { - globalInstance = new RadegastInstance(); + globalInstance = new RadegastInstance(new GridClient()); } return globalInstance; } @@ -121,11 +121,13 @@ namespace Radegast public readonly List PluginsLoaded = new List(); - private RadegastInstance() + public RadegastInstance(GridClient client0) { + // incase something else calls GlobalInstance while we are loading + globalInstance = this; InitializeLoggingAndConfig(); - client = new GridClient(); + client = client0; client.Settings.MULTIPLE_SIMS = true; -- 2.11.0