mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 17:05:55 +08:00
Add RegionManager level and the ability to use literal XML to the dynamic floater module
This commit is contained in:
@@ -125,10 +125,17 @@ namespace OpenSim.Region.OptionalModules.ViewerSupport
|
||||
m_floaters[agentID].Add(dialogData.Channel, dialogData);
|
||||
|
||||
string xml;
|
||||
using (FileStream fs = File.Open(dialogData.XmlName + ".xml", FileMode.Open))
|
||||
if (dialogData.XmlText != null && dialogData.XmlText != String.Empty)
|
||||
{
|
||||
using (StreamReader sr = new StreamReader(fs))
|
||||
xml = sr.ReadToEnd().Replace("\n", "");
|
||||
xml = dialogData.XmlText;
|
||||
}
|
||||
else
|
||||
{
|
||||
using (FileStream fs = File.Open(dialogData.XmlName + ".xml", FileMode.Open))
|
||||
{
|
||||
using (StreamReader sr = new StreamReader(fs))
|
||||
xml = sr.ReadToEnd().Replace("\n", "");
|
||||
}
|
||||
}
|
||||
|
||||
List<string> xparts = new List<string>();
|
||||
|
||||
Reference in New Issue
Block a user