mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 00:46:02 +08:00
* PROTIP: It helps to know what your doing when playing with reflection.
This commit is contained in:
@@ -38,20 +38,17 @@ namespace OpenSim.Region.Environment
|
||||
{
|
||||
if (pluginType.IsPublic)
|
||||
{
|
||||
if (!pluginType.IsAbstract)
|
||||
Type typeInterface = pluginType.GetInterface("IRegionDataStore", true);
|
||||
|
||||
if (typeInterface != null)
|
||||
{
|
||||
Type typeInterface = pluginType.GetInterface("IRegionDataStore", true);
|
||||
IRegionDataStore plug = (IRegionDataStore)Activator.CreateInstance(pluginAssembly.GetType(pluginType.ToString()));
|
||||
plug.Initialise(dataStoreFile, dataStoreDB);
|
||||
|
||||
if (typeInterface != null)
|
||||
{
|
||||
IRegionDataStore plug = (IRegionDataStore)Activator.CreateInstance(pluginAssembly.GetType(pluginType.ToString()));
|
||||
plug.Initialise(dataStoreFile, dataStoreDB);
|
||||
|
||||
m_dataStore = plug;
|
||||
}
|
||||
|
||||
typeInterface = null;
|
||||
m_dataStore = plug;
|
||||
}
|
||||
|
||||
typeInterface = null;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ using libsecondlife;
|
||||
|
||||
namespace OpenSim.DataStore.NullStorage
|
||||
{
|
||||
class NullDataStore : IRegionDataStore
|
||||
public class NullDataStore : IRegionDataStore
|
||||
{
|
||||
public void Initialise(string dbfile, string dbname)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user