#W# File structure changes.
This commit is contained in:
parent
f3c4050cc3
commit
624d04b84f
38 changed files with 43 additions and 43 deletions
|
|
@ -858,16 +858,16 @@ namespace Server
|
|||
|
||||
internal static void Load()
|
||||
{
|
||||
if ( !System.IO.File.Exists( "Data/Regions.xml" ) )
|
||||
if ( !System.IO.File.Exists( "Data/Config/Regions.xml" ) )
|
||||
{
|
||||
Console.WriteLine( "Error: Data/Regions.xml does not exist" );
|
||||
Console.WriteLine( "Error: Data/Config/Regions.xml does not exist" );
|
||||
return;
|
||||
}
|
||||
|
||||
Console.Write( "Regions: Loading..." );
|
||||
|
||||
XmlDocument doc = new XmlDocument();
|
||||
doc.Load( System.IO.Path.Combine( Core.BaseDirectory, "Data/Regions.xml" ) );
|
||||
doc.Load( System.IO.Path.Combine( Core.BaseDirectory, "Data/Config/Regions.xml" ) );
|
||||
|
||||
XmlElement root = doc["ServerRegions"];
|
||||
|
||||
|
|
@ -1282,4 +1282,4 @@ namespace Server
|
|||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue