Moved the linkage between LoginService and HGInventoryService to the config file

0.8.0.3
Oren Hurvitz 2014-03-24 18:33:18 +02:00
parent df9845a283
commit 5b2af7f99e
2 changed files with 9 additions and 4 deletions

View File

@ -167,11 +167,12 @@ namespace OpenSim.Services.LLLoginService
m_UserAgentService = ServerUtils.LoadPlugin<IUserAgentService>(agentService, args);
// Get the Hypergrid inventory service (exists only if Hypergrid is enabled)
string hgInvService = Util.GetConfigVarFromSections<string>(config, "LocalServiceModule", new string[] { "HGInventoryService" }, String.Empty);
if (hgInvService != string.Empty)
string hgInvServicePlugin = m_LoginServerConfig.GetString("HGInventoryServicePlugin", String.Empty);
if (hgInvServicePlugin != string.Empty)
{
Object[] args2 = new Object[] { config, "HGInventoryService" };
m_HGInventoryService = ServerUtils.LoadPlugin<IInventoryService>(hgInvService, args2);
string hgInvServiceArg = m_LoginServerConfig.GetString("HGInventoryServiceConstructorArg", String.Empty);
Object[] args2 = new Object[] { config, hgInvServiceArg };
m_HGInventoryService = ServerUtils.LoadPlugin<IInventoryService>(hgInvServicePlugin, args2);
}
//

View File

@ -335,6 +335,10 @@ HGAssetServiceConnector = "HGAssetService@8002/OpenSim.Server.Handlers.dll:Asset
UserAgentService = "OpenSim.Services.HypergridService.dll:UserAgentService"
FriendsService = "OpenSim.Services.FriendsService.dll:FriendsService"
; This inventory service will be used to initialize the user's inventory
HGInventoryServicePlugin = "OpenSim.Services.HypergridService.dll:HGSuitcaseInventoryService"
HGInventoryServiceConstructorArg = "HGInventoryService"
;; Ask co-operative viewers to use a different currency name
;Currency = ""