Make the LSL memory functions virtual so script engines can override them if they have different memory management.

0.7.4-extended
Melanie 2013-03-15 23:46:49 +00:00 committed by Justin Clark-Casey (justincc)
parent 95cdaf81a3
commit fbb738a627
1 changed files with 2 additions and 2 deletions

View File

@ -6079,7 +6079,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
return m_host.ParentGroup.AttachmentPoint;
}
public LSL_Integer llGetFreeMemory()
public virtual LSL_Integer llGetFreeMemory()
{
m_host.AddScriptLPS(1);
// Make scripts designed for LSO happy
@ -11286,7 +11286,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
return 16384;
}
public LSL_Integer llGetUsedMemory()
public virtual LSL_Integer llGetUsedMemory()
{
m_host.AddScriptLPS(1);
// The value returned for LSO scripts in SL