mirror of
https://github.com/opensim/opensim.git
synced 2026-08-01 14:16:07 +08:00
Update svn properties, minor formatting cleanup.
This commit is contained in:
@@ -202,9 +202,9 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
if (lastScriptEngine != null)
|
||||
lastScriptEngine.Log.WarnFormat("[{0}]: Exception {1} thrown",ScriptEngineName,e.GetType().ToString());
|
||||
throw e;
|
||||
if (lastScriptEngine != null)
|
||||
lastScriptEngine.Log.WarnFormat("[{0}]: Exception {1} thrown", ScriptEngineName, e.GetType().ToString());
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -216,7 +216,7 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine
|
||||
public void DoProcessQueue()
|
||||
{
|
||||
foreach (ScriptEngine m_ScriptEngine in
|
||||
new ArrayList(ScriptEngine.ScriptEngines))
|
||||
new ArrayList(ScriptEngine.ScriptEngines))
|
||||
{
|
||||
lastScriptEngine = m_ScriptEngine;
|
||||
|
||||
@@ -290,21 +290,21 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine
|
||||
InExecution = false;
|
||||
}
|
||||
}
|
||||
catch (SelfDeleteException sde)
|
||||
{
|
||||
// Make sure this exception isn't consumed here... we need it
|
||||
throw sde;
|
||||
}
|
||||
catch (TargetInvocationException tie)
|
||||
{
|
||||
// Probably don't need to special case this one
|
||||
throw tie;
|
||||
}
|
||||
catch (SelfDeleteException sde)
|
||||
{
|
||||
// Make sure this exception isn't consumed here... we need it
|
||||
throw sde;
|
||||
}
|
||||
catch (TargetInvocationException tie)
|
||||
{
|
||||
// Probably don't need to special case this one
|
||||
throw tie;
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
InExecution = false;
|
||||
string text = FormatException(e, QIS.LineMap);
|
||||
|
||||
InExecution = false;
|
||||
string text = FormatException(e, QIS.LineMap);
|
||||
|
||||
// DISPLAY ERROR INWORLD
|
||||
|
||||
// if (e.InnerException != null)
|
||||
@@ -340,7 +340,7 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine
|
||||
catch (Exception)
|
||||
{
|
||||
m_ScriptEngine.m_EventQueueManager.
|
||||
m_ScriptEngine.Log.Error("[" +
|
||||
m_ScriptEngine.Log.Error("[" +
|
||||
ScriptEngineName + "]: " +
|
||||
"Unable to send text in-world:\r\n" +
|
||||
text);
|
||||
|
||||
@@ -4699,7 +4699,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
if (cindex > 0)
|
||||
{
|
||||
ret.Add(str.Substring(0, cindex));
|
||||
}
|
||||
}
|
||||
// Cannot use spacers.Contains() because spacers may be either type String or LSLString
|
||||
for (int j = 0; j < spacers.Length; j++)
|
||||
{
|
||||
|
||||
@@ -710,18 +710,18 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
return String.Empty;
|
||||
}
|
||||
}
|
||||
|
||||
public string osGetSimulatorVersion()
|
||||
{
|
||||
|
||||
public string osGetSimulatorVersion()
|
||||
{
|
||||
// High because it can be used to target attacks to known weaknesses
|
||||
// This would allow a new class of griefer scripts that don't even
|
||||
// require their user to know what they are doing (see script
|
||||
// kiddie)
|
||||
//
|
||||
CheckThreatLevel(ThreatLevel.High,"osGetSimulatorVersion");
|
||||
m_host.AddScriptLPS(1);
|
||||
return m_ScriptEngine.World.GetSimulatorVersion();
|
||||
}
|
||||
CheckThreatLevel(ThreatLevel.High,"osGetSimulatorVersion");
|
||||
m_host.AddScriptLPS(1);
|
||||
return m_ScriptEngine.World.GetSimulatorVersion();
|
||||
}
|
||||
|
||||
|
||||
//for testing purposes only
|
||||
|
||||
@@ -85,7 +85,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces
|
||||
void osSetRegionWaterHeight(double height);
|
||||
|
||||
string osGetScriptEngineName();
|
||||
string osGetSimulatorVersion();
|
||||
string osGetSimulatorVersion();
|
||||
void osSetParcelMediaTime(double time);
|
||||
Hashtable osParseJSON(string JSON);
|
||||
|
||||
|
||||
@@ -191,19 +191,19 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
|
||||
//Console.WriteLine("ScriptEngine: Executing function name: " + EventName);
|
||||
#endif
|
||||
// Found
|
||||
try
|
||||
{
|
||||
ev.Invoke(m_Script, args);
|
||||
}
|
||||
catch (TargetInvocationException tie)
|
||||
{
|
||||
// Grab the inner exception and rethrow it
|
||||
throw tie.InnerException;
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
throw e;
|
||||
}
|
||||
try
|
||||
{
|
||||
ev.Invoke(m_Script, args);
|
||||
}
|
||||
catch (TargetInvocationException tie)
|
||||
{
|
||||
// Grab the inner exception and rethrow it
|
||||
throw tie.InnerException;
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
|
||||
protected void initEventFlags()
|
||||
|
||||
@@ -214,11 +214,11 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
|
||||
{
|
||||
return m_OSSL_Functions.osGetScriptEngineName();
|
||||
}
|
||||
|
||||
public string osGetSimulatorVersion()
|
||||
{
|
||||
return m_OSSL_Functions.osGetSimulatorVersion();
|
||||
}
|
||||
|
||||
public string osGetSimulatorVersion()
|
||||
{
|
||||
return m_OSSL_Functions.osGetSimulatorVersion();
|
||||
}
|
||||
|
||||
|
||||
//for testing purposes only
|
||||
|
||||
Reference in New Issue
Block a user