diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Common/OSSL_BuilIn_Commands.cs | 26 |
1 files changed, 26 insertions, 0 deletions
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 | } |