mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 00:46:02 +08:00
Load startuplogo_server.txt as logo for Robust
Signed-off-by: UbitUmarov <ajlduarte@sapo.pt>
This commit is contained in:
committed by
UbitUmarov
parent
60c99756ed
commit
ac83b0244a
@@ -29,8 +29,10 @@ using Nini.Config;
|
||||
using log4net;
|
||||
using System.Reflection;
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Net;
|
||||
using System.Net.Security;
|
||||
using System.Runtime;
|
||||
using System.Security.Cryptography.X509Certificates;
|
||||
using System.Collections.Generic;
|
||||
using OpenSim.Framework;
|
||||
@@ -73,6 +75,25 @@ namespace OpenSim.Server
|
||||
return false;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Opens a file and uses it as input to the console command parser.
|
||||
/// </summary>
|
||||
/// <param name="fileName">name of file to use as input to the console</param>
|
||||
private static void PrintFileToConsole(string fileName)
|
||||
{
|
||||
if (File.Exists(fileName))
|
||||
{
|
||||
using(StreamReader readFile = File.OpenText(fileName))
|
||||
{
|
||||
string currentLine;
|
||||
while ((currentLine = readFile.ReadLine()) != null)
|
||||
{
|
||||
m_log.InfoFormat("[!]" + currentLine);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static int Main(string[] args)
|
||||
{
|
||||
Culture.SetCurrentCulture();
|
||||
@@ -190,6 +211,8 @@ namespace OpenSim.Server
|
||||
}
|
||||
}
|
||||
|
||||
PrintFileToConsole("startuplogo_server.txt");
|
||||
|
||||
loader = new PluginLoader(m_Server.Config, registryLocation);
|
||||
|
||||
int res = m_Server.Run();
|
||||
|
||||
0
bin/startuplogo_server.txt
Normal file
0
bin/startuplogo_server.txt
Normal file
Reference in New Issue
Block a user