fixed exception and login failure in SimpleApp. (still doesn't work like it used to, though)

afrisby
Jeff Ames 2007-12-04 09:57:45 +00:00
parent be7ae3dd3e
commit 398ee5f229
1 changed files with 5 additions and 4 deletions

View File

@ -55,10 +55,10 @@ namespace SimpleApp
protected override void Initialize() protected override void Initialize()
{ {
StartLog();
m_networkServersInfo = new NetworkServersInfo(1000, 1000); m_networkServersInfo = new NetworkServersInfo(1000, 1000);
m_httpServerPort = m_networkServersInfo.HttpListenerPort;
LocalAssetServer assetServer = new LocalAssetServer(); LocalAssetServer assetServer = new LocalAssetServer();
m_assetCache = new AssetCache(assetServer, m_log); m_assetCache = new AssetCache(assetServer, m_log);
@ -66,13 +66,15 @@ namespace SimpleApp
public void Run() public void Run()
{ {
base.StartUp(); StartLog();
StartUp();
LocalInventoryService inventoryService = new LocalInventoryService(); LocalInventoryService inventoryService = new LocalInventoryService();
LocalUserServices userService = LocalUserServices userService =
new LocalUserServices(m_networkServersInfo, m_networkServersInfo.DefaultHomeLocX, new LocalUserServices(m_networkServersInfo, m_networkServersInfo.DefaultHomeLocX,
m_networkServersInfo.DefaultHomeLocY, inventoryService); m_networkServersInfo.DefaultHomeLocY, inventoryService);
LocalBackEndServices backendService = new LocalBackEndServices(); LocalBackEndServices backendService = new LocalBackEndServices();
userService.AddPlugin("OpenSim.Framework.Data.SQLite.dll");
CommunicationsLocal localComms = CommunicationsLocal localComms =
new CommunicationsLocal(m_networkServersInfo, m_httpServer, m_assetCache, userService, inventoryService, new CommunicationsLocal(m_networkServersInfo, m_httpServer, m_assetCache, userService, inventoryService,
@ -142,7 +144,6 @@ namespace SimpleApp
new LLVector3((float) Util.RandomClass.Next(100, 200), (float) Util.RandomClass.Next(30, 200), 2); new LLVector3((float) Util.RandomClass.Next(100, 200), (float) Util.RandomClass.Next(30, 200), 2);
} }
DirectoryInfo dirInfo = new DirectoryInfo("."); DirectoryInfo dirInfo = new DirectoryInfo(".");
float x = 0; float x = 0;