#W# File structure changes.
This commit is contained in:
parent
f3c4050cc3
commit
624d04b84f
38 changed files with 43 additions and 43 deletions
|
|
@ -41,9 +41,9 @@ namespace Server
|
|||
|
||||
static Body()
|
||||
{
|
||||
if ( File.Exists( "Data/bodyTable.cfg" ) )
|
||||
if ( File.Exists( "Data/Config/bodyTable.cfg" ) )
|
||||
{
|
||||
using ( StreamReader ip = new StreamReader( "Data/bodyTable.cfg" ) )
|
||||
using ( StreamReader ip = new StreamReader( "Data/Config/bodyTable.cfg" ) )
|
||||
{
|
||||
m_Types = new BodyType[0x1000];
|
||||
|
||||
|
|
@ -73,7 +73,7 @@ namespace Server
|
|||
}
|
||||
else
|
||||
{
|
||||
Console.WriteLine( "Warning: Data/bodyTable.cfg does not exist" );
|
||||
Console.WriteLine( "Warning: Data/Config/bodyTable.cfg does not exist" );
|
||||
|
||||
m_Types = new BodyType[0];
|
||||
}
|
||||
|
|
@ -284,4 +284,4 @@ namespace Server
|
|||
return l.m_BodyID <= r.m_BodyID;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1729,7 +1729,7 @@ namespace Server.Items
|
|||
{
|
||||
m_Table = new Dictionary<int, ContainerData>();
|
||||
|
||||
string path = Path.Combine( Core.BaseDirectory, "Data/containers.cfg" );
|
||||
string path = Path.Combine( Core.BaseDirectory, "Data/Config/containers.cfg" );
|
||||
|
||||
if ( !File.Exists( path ) )
|
||||
{
|
||||
|
|
@ -1784,7 +1784,7 @@ namespace Server.Items
|
|||
|
||||
if ( m_Table.ContainsKey( id ) )
|
||||
{
|
||||
Console.WriteLine( @"Warning: double ItemID entry in Data\containers.cfg" );
|
||||
Console.WriteLine( @"Warning: double ItemID entry in Data\Config\containers.cfg" );
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
@ -1839,4 +1839,4 @@ namespace Server.Items
|
|||
m_DropSound = dropSound;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -55,7 +55,7 @@ namespace Server
|
|||
{
|
||||
List<string> list = new List<string>();
|
||||
|
||||
string path = Path.Combine( Core.BaseDirectory, "Data/Assemblies.cfg" );
|
||||
string path = Path.Combine( Core.BaseDirectory, "Data/Config/Assemblies.cfg" );
|
||||
|
||||
if( File.Exists( path ) )
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue