mirror of
https://github.com/opensim/opensim.git
synced 2026-08-12 04:05:42 +08:00
Added parts to manage repositories and plugin management
This is working - more testing to follow, then soem documentation
This commit is contained in:
@@ -34,6 +34,7 @@ using OpenSim.Framework.Servers;
|
||||
using OpenSim.Framework.Servers.HttpServer;
|
||||
using OpenSim.Server.Base;
|
||||
using OpenSim.Server.Handlers.Base;
|
||||
using Mono.Addins;
|
||||
|
||||
namespace OpenSim.Server
|
||||
{
|
||||
@@ -48,9 +49,13 @@ namespace OpenSim.Server
|
||||
protected static List<IServiceConnector> m_ServiceConnectors =
|
||||
new List<IServiceConnector>();
|
||||
|
||||
protected static PluginLoader loader;
|
||||
|
||||
public static int Main(string[] args)
|
||||
{
|
||||
m_Server = new HttpServerBase("R.O.B.U.S.T.", args);
|
||||
|
||||
string registryLocation;
|
||||
|
||||
IConfig serverConfig = m_Server.Config.Configs["Startup"];
|
||||
if (serverConfig == null)
|
||||
@@ -61,6 +66,8 @@ namespace OpenSim.Server
|
||||
|
||||
string connList = serverConfig.GetString("ServiceConnectors", String.Empty);
|
||||
string[] conns = connList.Split(new char[] {',', ' '});
|
||||
|
||||
registryLocation = serverConfig.GetString("RegistryLocation",".");
|
||||
|
||||
// int i = 0;
|
||||
foreach (string c in conns)
|
||||
@@ -123,6 +130,9 @@ namespace OpenSim.Server
|
||||
m_log.InfoFormat("[SERVER]: Failed to load {0}", conn);
|
||||
}
|
||||
}
|
||||
|
||||
loader = new PluginLoader(m_Server.Config, registryLocation);
|
||||
|
||||
int res = m_Server.Run();
|
||||
|
||||
Environment.Exit(res);
|
||||
|
||||
Reference in New Issue
Block a user