Changed it so only .ini file types are loaded from the (optional) config directory rather all files types in that folder.
							parent
							
								
									d6b8b41a5b
								
							
						
					
					
						commit
						7a2985b441
					
				| 
						 | 
				
			
			@ -92,11 +92,14 @@ namespace OpenSim
 | 
			
		|||
                m_log.InfoFormat("Searching folder: {0} , for config ini files", iniDirName);
 | 
			
		||||
                string[] fileEntries = Directory.GetFiles(iniDirName);
 | 
			
		||||
                foreach (string filePath in fileEntries)
 | 
			
		||||
                {
 | 
			
		||||
                    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);
 | 
			
		||||
                    }
 | 
			
		||||
                }
 | 
			
		||||
            }
 | 
			
		||||
            
 | 
			
		||||
            // Check for .INI file (either default or name passed on command
 | 
			
		||||
            // line) or XML config source over http
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue