diff options
author | Charles Krinke | 2008-06-27 02:15:57 +0000 |
---|---|---|
committer | Charles Krinke | 2008-06-27 02:15:57 +0000 |
commit | ca8d1d57e1bbf49cb52abe81b3a7246dacbe9b03 (patch) | |
tree | 97f8cce96ea2e98b96b36e523c59361bf00f63b8 /OpenSim/ApplicationPlugins/LoadRegions | |
parent | Mantis#1610. Thank you, Melanie for a patch that: (diff) | |
download | opensim-SC_OLD-ca8d1d57e1bbf49cb52abe81b3a7246dacbe9b03.zip opensim-SC_OLD-ca8d1d57e1bbf49cb52abe81b3a7246dacbe9b03.tar.gz opensim-SC_OLD-ca8d1d57e1bbf49cb52abe81b3a7246dacbe9b03.tar.bz2 opensim-SC_OLD-ca8d1d57e1bbf49cb52abe81b3a7246dacbe9b03.tar.xz |
Mantis#1591. Thank you graciously, Sempuki for a patch that:
Currently module loading is done ad-hoc. I propose creating a simple
loader class that leverages Mono.Addins (and perhaps the new .NET
addins when they become available in mono). Attached is a basic
patch for review that compiles into HEAD, but doesn't yet replace
any existing ad-hoc loaders.
Diffstat (limited to 'OpenSim/ApplicationPlugins/LoadRegions')
-rw-r--r-- | OpenSim/ApplicationPlugins/LoadRegions/LoadRegionsPlugin.cs | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/OpenSim/ApplicationPlugins/LoadRegions/LoadRegionsPlugin.cs b/OpenSim/ApplicationPlugins/LoadRegions/LoadRegionsPlugin.cs index 4b11fd4..6743fb4 100644 --- a/OpenSim/ApplicationPlugins/LoadRegions/LoadRegionsPlugin.cs +++ b/OpenSim/ApplicationPlugins/LoadRegions/LoadRegionsPlugin.cs | |||
@@ -46,6 +46,19 @@ namespace OpenSim.ApplicationPlugins.LoadRegions | |||
46 | 46 | ||
47 | #region IApplicationPlugin Members | 47 | #region IApplicationPlugin Members |
48 | 48 | ||
49 | // TODO: required by IPlugin, but likely not at all right | ||
50 | string m_name = "LoadRegionsPlugin"; | ||
51 | string m_version = "0.0"; | ||
52 | |||
53 | public string Version { get { return m_version; } } | ||
54 | public string Name { get { return m_name; } } | ||
55 | |||
56 | public void Initialise() | ||
57 | { | ||
58 | m_log.Info("[LOADREGIONS]: " + Name + " cannot be default-initialized!"); | ||
59 | throw new PluginNotInitialisedException (Name); | ||
60 | } | ||
61 | |||
49 | public void Initialise(OpenSimBase openSim) | 62 | public void Initialise(OpenSimBase openSim) |
50 | { | 63 | { |
51 | m_log.Info("[LOADREGIONS]: Load Regions addin being initialised"); | 64 | m_log.Info("[LOADREGIONS]: Load Regions addin being initialised"); |
@@ -78,7 +91,7 @@ namespace OpenSim.ApplicationPlugins.LoadRegions | |||
78 | openSim.ModuleLoader.ClearCache(); | 91 | openSim.ModuleLoader.ClearCache(); |
79 | } | 92 | } |
80 | 93 | ||
81 | public void Close() | 94 | public void Dispose() |
82 | { | 95 | { |
83 | } | 96 | } |
84 | 97 | ||
@@ -113,4 +126,4 @@ namespace OpenSim.ApplicationPlugins.LoadRegions | |||
113 | } | 126 | } |
114 | } | 127 | } |
115 | } | 128 | } |
116 | } \ No newline at end of file | 129 | } |