mono fixes, tweaking service mode
This commit is contained in:
parent
59a86c7a7d
commit
0f73c81a6a
6 changed files with 53 additions and 32 deletions
|
|
@ -386,7 +386,7 @@ namespace Server
|
|||
if( !Directory.Exists( "Logs" ) )
|
||||
Directory.CreateDirectory( "Logs" );
|
||||
|
||||
Console.SetOut( m_MultiConOut = new MultiTextWriter( Console.Out, new FileLogger( "Logs/Console.log" ) ) );
|
||||
Console.SetOut( m_MultiConOut = new MultiTextWriter( new FileLogger( "Logs/Console.log" ) ) );
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
@ -431,7 +431,7 @@ namespace Server
|
|||
Console.WriteLine( "Core: Optimizing for {0} {2}processor{1}", m_ProcessorCount, m_ProcessorCount == 1 ? "" : "s", Is64Bit ? "64-bit " : "" );
|
||||
|
||||
int platform = (int)Environment.OSVersion.Platform;
|
||||
if ( ( platform == 4 ) || ( platform == 128 ) ) { // MS 4, MONO 128
|
||||
if ( platform == 4 || platform == 128 ) { // MS 4, MONO 128
|
||||
m_Unix = true;
|
||||
Console.WriteLine( "Core: Unix environment detected" );
|
||||
}
|
||||
|
|
@ -449,6 +449,13 @@ namespace Server
|
|||
return;
|
||||
}
|
||||
|
||||
ScriptCompiler.Invoke( "Configure" );
|
||||
|
||||
Region.Load();
|
||||
World.Load();
|
||||
|
||||
ScriptCompiler.Invoke( "Initialize" );
|
||||
|
||||
SocketPool.Create();
|
||||
|
||||
MessagePump ms = m_MessagePump = new MessagePump();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue