Load startuplogo_server.txt as logo for Robust

Signed-off-by: UbitUmarov <ajlduarte@sapo.pt>
This commit is contained in:
Vincent Sylvester
2021-10-14 22:43:44 +02:00
committed by UbitUmarov
parent 60c99756ed
commit ac83b0244a
2 changed files with 23 additions and 0 deletions

View File

@@ -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();

View File