mirror of
https://github.com/opensim/opensim.git
synced 2026-08-12 04:05:42 +08:00
Massive tab and trailing space cleanup
This commit is contained in:
@@ -124,7 +124,7 @@ namespace OpenSim.ApplicationPlugins.LoadRegions
|
||||
m_log.Debug("[LOAD REGIONS PLUGIN]: Creating Region: " + regionsToLoad[i].RegionName + " (ThreadID: " +
|
||||
Thread.CurrentThread.ManagedThreadId.ToString() +
|
||||
")");
|
||||
|
||||
|
||||
bool changed = m_openSim.PopulateRegionEstateInfo(regionsToLoad[i]);
|
||||
|
||||
m_openSim.CreateRegion(regionsToLoad[i], true, out scene);
|
||||
|
||||
@@ -38,7 +38,7 @@ namespace OpenSim.ApplicationPlugins.LoadRegions
|
||||
public class RegionLoaderFileSystem : IRegionLoader
|
||||
{
|
||||
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
|
||||
|
||||
|
||||
private IConfigSource m_configSource;
|
||||
|
||||
public void SetIniConfigSource(IConfigSource configSource)
|
||||
@@ -72,11 +72,11 @@ namespace OpenSim.ApplicationPlugins.LoadRegions
|
||||
|
||||
// Create an empty Regions.ini if there are no existing config files.
|
||||
if (!allowRegionless && configFiles.Length == 0 && iniFiles.Length == 0)
|
||||
{
|
||||
{
|
||||
new RegionInfo("DEFAULT REGION CONFIG", Path.Combine(regionConfigPath, "Regions.ini"), false, m_configSource);
|
||||
iniFiles = Directory.GetFiles(regionConfigPath, "*.ini");
|
||||
}
|
||||
|
||||
|
||||
m_log.InfoFormat("[REGION LOADER FILE SYSTEM]: Loading config files from {0}", regionConfigPath);
|
||||
|
||||
List<RegionInfo> regionInfos = new List<RegionInfo>();
|
||||
@@ -85,16 +85,16 @@ namespace OpenSim.ApplicationPlugins.LoadRegions
|
||||
foreach (string file in iniFiles)
|
||||
{
|
||||
m_log.InfoFormat("[REGION LOADER FILE SYSTEM]: Loading config file {0}", file);
|
||||
|
||||
|
||||
IConfigSource source = new IniConfigSource(file);
|
||||
|
||||
foreach (IConfig config in source.Configs)
|
||||
{
|
||||
{
|
||||
RegionInfo regionInfo = new RegionInfo("REGION CONFIG #" + (i + 1), file, false, m_configSource, config.Name);
|
||||
regionInfos.Add(regionInfo);
|
||||
|
||||
|
||||
m_log.InfoFormat("[REGION LOADER FILE SYSTEM]: Loaded config for region {0}", regionInfo.RegionName);
|
||||
|
||||
|
||||
i++;
|
||||
}
|
||||
}
|
||||
@@ -102,12 +102,12 @@ namespace OpenSim.ApplicationPlugins.LoadRegions
|
||||
foreach (string file in configFiles)
|
||||
{
|
||||
m_log.InfoFormat("[REGION LOADER FILE SYSTEM]: Loading config file {0}", file);
|
||||
|
||||
|
||||
RegionInfo regionInfo = new RegionInfo("REGION CONFIG #" + (i + 1), file, false, m_configSource);
|
||||
regionInfos.Add(regionInfo);
|
||||
|
||||
|
||||
m_log.InfoFormat("[REGION LOADER FILE SYSTEM]: Loaded config for region {0}", regionInfo.RegionName);
|
||||
|
||||
|
||||
i++;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user