aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs39
1 files changed, 27 insertions, 12 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
index 23158b9..9564d46 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
@@ -12019,35 +12019,50 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
12019 return 1; 12019 return 1;
12020 } 12020 }
12021 12021
12022 #region Not Implemented 12022 public LSL_Integer llGetMemoryLimit()
12023 // 12023 {
12024 // Listing the unimplemented lsl functions here, please move 12024 m_host.AddScriptLPS(1);
12025 // them from this region as they are completed 12025 // The value returned for LSO scripts in SL
12026 // 12026 return 16384;
12027 }
12027 12028
12028 public void llGetEnv(LSL_String name) 12029 public LSL_Integer llSetMemoryLimit(LSL_Integer limit)
12029 { 12030 {
12030 m_host.AddScriptLPS(1); 12031 m_host.AddScriptLPS(1);
12031 NotImplemented("llGetEnv"); 12032 // Treat as an LSO script
12033 return ScriptBaseClass.FALSE;
12032 } 12034 }
12033 12035
12034 public void llGetSPMaxMemory() 12036 public LSL_Integer llGetSPMaxMemory()
12035 { 12037 {
12036 m_host.AddScriptLPS(1); 12038 m_host.AddScriptLPS(1);
12037 NotImplemented("llGetSPMaxMemory"); 12039 // The value returned for LSO scripts in SL
12040 return 16384;
12038 } 12041 }
12039 12042
12040 public virtual LSL_Integer llGetUsedMemory() 12043 public virtual LSL_Integer llGetUsedMemory()
12041 { 12044 {
12042 m_host.AddScriptLPS(1); 12045 m_host.AddScriptLPS(1);
12043 NotImplemented("llGetUsedMemory"); 12046 // The value returned for LSO scripts in SL
12044 return 0; 12047 return 16384;
12045 } 12048 }
12046 12049
12047 public void llScriptProfiler(LSL_Integer flags) 12050 public void llScriptProfiler(LSL_Integer flags)
12048 { 12051 {
12049 m_host.AddScriptLPS(1); 12052 m_host.AddScriptLPS(1);
12050 //NotImplemented("llScriptProfiler"); 12053 // This does nothing for LSO scripts in SL
12054 }
12055
12056 #region Not Implemented
12057 //
12058 // Listing the unimplemented lsl functions here, please move
12059 // them from this region as they are completed
12060 //
12061
12062 public void llGetEnv(LSL_String name)
12063 {
12064 m_host.AddScriptLPS(1);
12065 NotImplemented("llGetEnv");
12051 } 12066 }
12052 12067
12053 public void llSetSoundQueueing(int queue) 12068 public void llSetSoundQueueing(int queue)