aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Framework/AssetLoader/Filesystem/AssetLoaderFileSystem.cs4
-rw-r--r--OpenSim/Framework/PluginLoader.cs12
2 files changed, 12 insertions, 4 deletions
diff --git a/OpenSim/Framework/AssetLoader/Filesystem/AssetLoaderFileSystem.cs b/OpenSim/Framework/AssetLoader/Filesystem/AssetLoaderFileSystem.cs
index cf601f1..6fe9fb4 100644
--- a/OpenSim/Framework/AssetLoader/Filesystem/AssetLoaderFileSystem.cs
+++ b/OpenSim/Framework/AssetLoader/Filesystem/AssetLoaderFileSystem.cs
@@ -52,7 +52,7 @@ namespace OpenSim.Framework.AssetLoader.Filesystem
52 52
53 if (!String.IsNullOrEmpty(path)) 53 if (!String.IsNullOrEmpty(path))
54 { 54 {
55 m_log.InfoFormat("[ASSETS]: Loading: [{0}][{1}]", name, path); 55 //m_log.InfoFormat("[ASSETS]: Loading: [{0}][{1}]", name, path);
56 56
57 LoadAsset(asset, isImage, path); 57 LoadAsset(asset, isImage, path);
58 } 58 }
@@ -131,7 +131,7 @@ namespace OpenSim.Framework.AssetLoader.Filesystem
131 /// <param name="assets"></param> 131 /// <param name="assets"></param>
132 protected static void LoadXmlAssetSet(string assetSetPath, List<AssetBase> assets) 132 protected static void LoadXmlAssetSet(string assetSetPath, List<AssetBase> assets)
133 { 133 {
134 m_log.InfoFormat("[ASSETS]: Loading asset set {0}", assetSetPath); 134 //m_log.InfoFormat("[ASSETS]: Loading asset set {0}", assetSetPath);
135 135
136 if (File.Exists(assetSetPath)) 136 if (File.Exists(assetSetPath))
137 { 137 {
diff --git a/OpenSim/Framework/PluginLoader.cs b/OpenSim/Framework/PluginLoader.cs
index 497d9f5..440e0d5 100644
--- a/OpenSim/Framework/PluginLoader.cs
+++ b/OpenSim/Framework/PluginLoader.cs
@@ -171,6 +171,7 @@ namespace OpenSim.Framework
171 if (filters.ContainsKey (ext)) 171 if (filters.ContainsKey (ext))
172 filter = filters [ext]; 172 filter = filters [ext];
173 173
174 List<T> loadedPlugins = new List<T>();
174 foreach (PluginExtensionNode node in AddinManager.GetExtensionNodes (ext)) 175 foreach (PluginExtensionNode node in AddinManager.GetExtensionNodes (ext))
175 { 176 {
176 log.Info("[PLUGINS]: Trying plugin " + node.Path); 177 log.Info("[PLUGINS]: Trying plugin " + node.Path);
@@ -179,8 +180,15 @@ namespace OpenSim.Framework
179 continue; 180 continue;
180 181
181 T plugin = (T) node.CreateInstance(); 182 T plugin = (T) node.CreateInstance();
182 Initialiser.Initialise (plugin); 183 loadedPlugins.Add(plugin);
183 Plugins.Add (plugin); 184 }
185 // We do Initialise() in a second loop after CreateInstance
186 // So that modules who need init before others can do it
187 // Example: Script Engine Component System needs to load its components before RegionLoader starts
188 foreach (T plugin in loadedPlugins)
189 {
190 Initialiser.Initialise(plugin);
191 Plugins.Add(plugin);
184 } 192 }
185 } 193 }
186 } 194 }