mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 01:06:30 +08:00
Temporary fix for the region crossing crash, Although we need to start to change and improve how we handle caps.
This commit is contained in:
@@ -26,6 +26,7 @@
|
||||
*
|
||||
*/
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Security.Cryptography;
|
||||
using System.Net;
|
||||
@@ -41,6 +42,7 @@ namespace OpenSim.Framework.Utilities
|
||||
private static Random randomClass = new Random();
|
||||
private static uint nextXferID = 5000;
|
||||
private static object XferLock = new object();
|
||||
private static Dictionary<LLUUID, string> capsURLS = new Dictionary<LLUUID, string>();
|
||||
|
||||
public static ulong UIntsToLong(uint X, uint Y)
|
||||
{
|
||||
@@ -66,6 +68,11 @@ namespace OpenSim.Framework.Utilities
|
||||
return id;
|
||||
}
|
||||
|
||||
public Util()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public static string GetFileName(string file)
|
||||
{
|
||||
// Return just the filename on UNIX platforms
|
||||
@@ -311,9 +318,25 @@ namespace OpenSim.Framework.Utilities
|
||||
return temp;
|
||||
}
|
||||
|
||||
public Util()
|
||||
public static string GetCapsURL(LLUUID userID)
|
||||
{
|
||||
if (capsURLS.ContainsKey(userID))
|
||||
{
|
||||
return capsURLS[userID];
|
||||
}
|
||||
return "";
|
||||
}
|
||||
|
||||
public static void SetCapsURL(LLUUID userID, string url)
|
||||
{
|
||||
if (capsURLS.ContainsKey(userID))
|
||||
{
|
||||
capsURLS[userID] = url;
|
||||
}
|
||||
else
|
||||
{
|
||||
capsURLS.Add(userID, url);
|
||||
}
|
||||
}
|
||||
|
||||
// Nini (config) related Methods
|
||||
|
||||
Reference in New Issue
Block a user