Changed it so only .ini file types are loaded from the (optional) config directory rather all files types in that folder.

0.6.4-rc1
MW 2009-02-28 15:16:12 +00:00
parent d6b8b41a5b
commit 7a2985b441
1 changed files with 5 additions and 2 deletions

View File

@ -93,8 +93,11 @@ namespace OpenSim
string[] fileEntries = Directory.GetFiles(iniDirName);
foreach (string filePath in fileEntries)
{
// m_log.InfoFormat("reading ini file < {0} > from config dir", filePath);
ReadConfig(Path.GetFileName(filePath), filePath, m_config, false);
if (Path.GetExtension(filePath).ToLower() == ".ini")
{
// m_log.InfoFormat("reading ini file < {0} > from config dir", filePath);
ReadConfig(Path.GetFileName(filePath), filePath, m_config, false);
}
}
}