aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Common
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Common')
-rw-r--r--OpenSim/Region/ScriptEngine/Common/BuiltIn_Commands_BaseClass.cs5
-rw-r--r--OpenSim/Region/ScriptEngine/Common/OSSL_BuilIn_Commands.cs26
-rw-r--r--OpenSim/Region/ScriptEngine/Common/OSSL_BuilIn_Commands_Interface.cs2
3 files changed, 33 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/Common/BuiltIn_Commands_BaseClass.cs b/OpenSim/Region/ScriptEngine/Common/BuiltIn_Commands_BaseClass.cs
index 47588b6..90eb8c7 100644
--- a/OpenSim/Region/ScriptEngine/Common/BuiltIn_Commands_BaseClass.cs
+++ b/OpenSim/Region/ScriptEngine/Common/BuiltIn_Commands_BaseClass.cs
@@ -2022,6 +2022,11 @@ namespace OpenSim.Region.ScriptEngine.Common
2022 m_LSL_Functions.osOpenRemoteDataChannel(channel); 2022 m_LSL_Functions.osOpenRemoteDataChannel(channel);
2023 } 2023 }
2024 2024
2025 public string osGetScriptEngineName()
2026 {
2027 return m_LSL_Functions.osGetScriptEngineName();
2028 }
2029
2025 // 2030 //
2026 2031
2027 public double llList2Float(LSL_Types.list src, int index) 2032 public double llList2Float(LSL_Types.list src, int index)
diff --git a/OpenSim/Region/ScriptEngine/Common/OSSL_BuilIn_Commands.cs b/OpenSim/Region/ScriptEngine/Common/OSSL_BuilIn_Commands.cs
index bd7ad82..fc62b02 100644
--- a/OpenSim/Region/ScriptEngine/Common/OSSL_BuilIn_Commands.cs
+++ b/OpenSim/Region/ScriptEngine/Common/OSSL_BuilIn_Commands.cs
@@ -543,5 +543,31 @@ namespace OpenSim.Region.ScriptEngine.Common
543 m_ScriptEngine.m_EventQueueManager.AddToScriptQueue(m_localID, m_itemID, "remote_data", EventQueueManager.llDetectNull, resobj); 543 m_ScriptEngine.m_EventQueueManager.AddToScriptQueue(m_localID, m_itemID, "remote_data", EventQueueManager.llDetectNull, resobj);
544 } 544 }
545 } 545 }
546
547 public string osGetScriptEngineName()
548 {
549 m_host.AddScriptLPS(1);
550
551 int scriptEngineNameIndex = 0;
552
553 if (!String.IsNullOrEmpty(m_ScriptEngine.ScriptEngineName))
554 {
555 // parse off the "ScriptEngine."
556 scriptEngineNameIndex = m_ScriptEngine.ScriptEngineName.IndexOf(".", scriptEngineNameIndex);
557 scriptEngineNameIndex++; // get past delimiter
558
559 int scriptEngineNameLength = m_ScriptEngine.ScriptEngineName.Length - scriptEngineNameIndex;
560
561 // create char array then a string that is only the script engine name
562 Char[] scriptEngineNameCharArray = m_ScriptEngine.ScriptEngineName.ToCharArray(scriptEngineNameIndex, scriptEngineNameLength);
563 String scriptEngineName = new String(scriptEngineNameCharArray);
564
565 return scriptEngineName;
566 }
567 else
568 {
569 return String.Empty;
570 }
571 }
546 } 572 }
547} 573}
diff --git a/OpenSim/Region/ScriptEngine/Common/OSSL_BuilIn_Commands_Interface.cs b/OpenSim/Region/ScriptEngine/Common/OSSL_BuilIn_Commands_Interface.cs
index 171bffd..4f7b56e 100644
--- a/OpenSim/Region/ScriptEngine/Common/OSSL_BuilIn_Commands_Interface.cs
+++ b/OpenSim/Region/ScriptEngine/Common/OSSL_BuilIn_Commands_Interface.cs
@@ -64,5 +64,7 @@ namespace OpenSim.Region.ScriptEngine.Common
64 64
65 void osOpenRemoteDataChannel(string channel); 65 void osOpenRemoteDataChannel(string channel);
66 66
67 string osGetScriptEngineName();
68
67 } 69 }
68} 70}