store terrain module trying to load plugins if plugin path does not exist

prebuild-update
Justin Clark-Casey (justincc) 2010-07-30 20:54:02 +01:00
parent c6bc1d28ec
commit f37ec933ae
1 changed files with 7 additions and 2 deletions

View File

@ -381,8 +381,13 @@ namespace OpenSim.Region.CoreModules.World.Terrain
private void LoadPlugins() private void LoadPlugins()
{ {
m_plugineffects = new Dictionary<string, ITerrainEffect>(); m_plugineffects = new Dictionary<string, ITerrainEffect>();
string plugineffectsPath = "Terrain";
// Load the files in the Terrain/ dir // Load the files in the Terrain/ dir
string[] files = Directory.GetFiles("Terrain"); if (!Directory.Exists(plugineffectsPath))
return;
string[] files = Directory.GetFiles(plugineffectsPath);
foreach (string file in files) foreach (string file in files)
{ {
m_log.Info("Loading effects in " + file); m_log.Info("Loading effects in " + file);