mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 01:06:30 +08:00
Missing or unimplemented LSL memory functions.
Implemented to behave as if scripts were LSO. Signed-off-by: nebadon <michael@osgrid.org>
This commit is contained in:
@@ -10949,6 +10949,40 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
return 1;
|
||||
}
|
||||
|
||||
public LSL_Integer llGetMemoryLimit()
|
||||
{
|
||||
m_host.AddScriptLPS(1);
|
||||
// The value returned for LSO scripts in SL
|
||||
return 16384;
|
||||
}
|
||||
|
||||
public LSL_Integer llSetMemoryLimit(LSL_Integer limit)
|
||||
{
|
||||
m_host.AddScriptLPS(1);
|
||||
// Treat as an LSO script
|
||||
return ScriptBaseClass.FALSE;
|
||||
}
|
||||
|
||||
public LSL_Integer llGetSPMaxMemory()
|
||||
{
|
||||
m_host.AddScriptLPS(1);
|
||||
// The value returned for LSO scripts in SL
|
||||
return 16384;
|
||||
}
|
||||
|
||||
public LSL_Integer llGetUsedMemory()
|
||||
{
|
||||
m_host.AddScriptLPS(1);
|
||||
// The value returned for LSO scripts in SL
|
||||
return 16384;
|
||||
}
|
||||
|
||||
public void llScriptProfiler(LSL_Integer flags)
|
||||
{
|
||||
m_host.AddScriptLPS(1);
|
||||
// This does nothing for LSO scripts in SL
|
||||
}
|
||||
|
||||
#region Not Implemented
|
||||
//
|
||||
// Listing the unimplemented lsl functions here, please move
|
||||
@@ -10961,24 +10995,6 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
NotImplemented("llGetEnv");
|
||||
}
|
||||
|
||||
public void llGetSPMaxMemory()
|
||||
{
|
||||
m_host.AddScriptLPS(1);
|
||||
NotImplemented("llGetSPMaxMemory");
|
||||
}
|
||||
|
||||
public void llGetUsedMemory()
|
||||
{
|
||||
m_host.AddScriptLPS(1);
|
||||
NotImplemented("llGetUsedMemory");
|
||||
}
|
||||
|
||||
public void llScriptProfiler(LSL_Integer flags)
|
||||
{
|
||||
m_host.AddScriptLPS(1);
|
||||
NotImplemented("llScriptProfiler");
|
||||
}
|
||||
|
||||
public void llSetSoundQueueing(int queue)
|
||||
{
|
||||
m_host.AddScriptLPS(1);
|
||||
|
||||
Reference in New Issue
Block a user