From f512502e51477d361e85e461ea5e53f26dfc8cd4 Mon Sep 17 00:00:00 2001 From: Justin Clarke Casey Date: Wed, 9 Apr 2008 15:28:51 +0000 Subject: [PATCH] From: Kurt Taylor "a patch to add a deprecated call to throw an LSL deprecated specific exception, and the associated code cleanup in the functions." Thanks! --- .../ScriptEngine/Common/LSL_BuiltIn_Commands.cs | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs index 9567d80751..1968f8e40a 100644 --- a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs +++ b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs @@ -1213,7 +1213,7 @@ namespace OpenSim.Region.ScriptEngine.Common m_host.AddScriptLPS(1); // This function has been deprecated // see http://www.lslwiki.net/lslwiki/wakka.php?wakka=llSound - NotImplemented("llSound"); + Deprecated("llSound"); } public void llPlaySound(string sound, double volume) @@ -3449,7 +3449,7 @@ namespace OpenSim.Region.ScriptEngine.Common public void llRemoteLoadScript() { m_host.AddScriptLPS(1); - ShoutError("llRemoteLoadScript: deprecated"); + Deprecated("llRemoteLoadScript"); } public void llSetRemoteScriptAccessPin(int pin) @@ -3559,7 +3559,7 @@ namespace OpenSim.Region.ScriptEngine.Common public void llXorBase64Strings() { m_host.AddScriptLPS(1); - throw new Exception("Command deprecated! Use llXorBase64StringsCorrect instead."); + Deprecated("llXorBase64Strings"); } public void llRemoteDataSetRegion() @@ -5212,6 +5212,12 @@ namespace OpenSim.Region.ScriptEngine.Common throw new NotImplementedException("Command not implemented: " + command); } + private void Deprecated(string command) + { + m_host.AddScriptLPS(1); + throw new Exception("Command deprecated: " + command); + } + private void LSLError(string msg) { m_host.AddScriptLPS(1);