aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/StorageManager.cs
diff options
context:
space:
mode:
authorAdam Frisby2007-07-15 17:32:54 +0000
committerAdam Frisby2007-07-15 17:32:54 +0000
commitaebd58d75e7e4c46c074cb8266481850f4841cb9 (patch)
tree57d25bf2fc29c7951792ac173e1cee8e9e1cf38a /OpenSim/Region/Environment/StorageManager.cs
parent* Marked old terrain methods as obsolete. (diff)
downloadopensim-SC_OLD-aebd58d75e7e4c46c074cb8266481850f4841cb9.zip
opensim-SC_OLD-aebd58d75e7e4c46c074cb8266481850f4841cb9.tar.gz
opensim-SC_OLD-aebd58d75e7e4c46c074cb8266481850f4841cb9.tar.bz2
opensim-SC_OLD-aebd58d75e7e4c46c074cb8266481850f4841cb9.tar.xz
* PROTIP: It helps to know what your doing when playing with reflection.
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Environment/StorageManager.cs19
1 files changed, 8 insertions, 11 deletions
diff --git a/OpenSim/Region/Environment/StorageManager.cs b/OpenSim/Region/Environment/StorageManager.cs
index 9f2730f..8f8ac97 100644
--- a/OpenSim/Region/Environment/StorageManager.cs
+++ b/OpenSim/Region/Environment/StorageManager.cs
@@ -38,20 +38,17 @@ namespace OpenSim.Region.Environment
38 { 38 {
39 if (pluginType.IsPublic) 39 if (pluginType.IsPublic)
40 { 40 {
41 if (!pluginType.IsAbstract) 41 Type typeInterface = pluginType.GetInterface("IRegionDataStore", true);
42 {
43 Type typeInterface = pluginType.GetInterface("IRegionDataStore", true);
44
45 if (typeInterface != null)
46 {
47 IRegionDataStore plug = (IRegionDataStore)Activator.CreateInstance(pluginAssembly.GetType(pluginType.ToString()));
48 plug.Initialise(dataStoreFile, dataStoreDB);
49 42
50 m_dataStore = plug; 43 if (typeInterface != null)
51 } 44 {
45 IRegionDataStore plug = (IRegionDataStore)Activator.CreateInstance(pluginAssembly.GetType(pluginType.ToString()));
46 plug.Initialise(dataStoreFile, dataStoreDB);
52 47
53 typeInterface = null; 48 m_dataStore = plug;
54 } 49 }
50
51 typeInterface = null;
55 } 52 }
56 } 53 }
57 54