From 0d5e67a9f6795cb2a470aa6505068b79ac252aaa Mon Sep 17 00:00:00 2001 From: Christopher Date: Wed, 10 Jun 2020 13:13:47 +0200 Subject: [PATCH] new try --- src/DataValue.cs | 37 +++++-------------------------------- 1 file changed, 5 insertions(+), 32 deletions(-) diff --git a/src/DataValue.cs b/src/DataValue.cs index 085bb66..3fdba18 100644 --- a/src/DataValue.cs +++ b/src/DataValue.cs @@ -124,7 +124,7 @@ namespace OpenSim.Modules.DataValue #region Script Funktions - private string getFilePath(UUID host, string index, bool privat) + private string getFilePath(UUID host, string index) { SceneObjectGroup _host = m_scene.GetSceneObjectGroup(host); @@ -132,9 +132,6 @@ namespace OpenSim.Modules.DataValue { string _nameSpace = _host.GroupID.ToString().Trim().ToUpper().Replace("-", ""); - if(privat == true) - _nameSpace = _host.OwnerID.ToString().Trim().ToUpper().Replace("-", ""); - if (!Directory.Exists(m_dataValueDirectory)) Directory.CreateDirectory(m_dataValueDirectory); @@ -152,13 +149,7 @@ namespace OpenSim.Modules.DataValue [ScriptInvocation] public string osGetDataValue(UUID hostID, UUID scriptID, string key) { - return osGetDataValue(hostID, scriptID, key, false); - } - - [ScriptInvocation] - public string osGetDataValue(UUID hostID, UUID scriptID, string key, bool personal) - { - string _filePath = getFilePath(hostID, key, personal); + string _filePath = getFilePath(hostID, key); FileInfo file = new FileInfo(_filePath); @@ -171,13 +162,7 @@ namespace OpenSim.Modules.DataValue [ScriptInvocation] public void osSetDataValue(UUID hostID, UUID scriptID, string key, string value) { - osSetDataValue(hostID, scriptID, key, value, false); - } - - [ScriptInvocation] - public void osSetDataValue(UUID hostID, UUID scriptID, string key, string value, bool personal) - { - string _filePath = getFilePath(hostID, key, personal); + string _filePath = getFilePath(hostID, key); FileInfo file = new FileInfo(_filePath); @@ -187,13 +172,7 @@ namespace OpenSim.Modules.DataValue [ScriptInvocation] public void osDeleteDataValue(UUID hostID, UUID scriptID, string key, string value) { - osDeleteDataValue(hostID, scriptID, key, false); - } - - [ScriptInvocation] - public void osDeleteDataValue(UUID hostID, UUID scriptID, string key, bool personal) - { - string _filePath = getFilePath(hostID, key, personal); + string _filePath = getFilePath(hostID, key); FileInfo file = new FileInfo(_filePath); @@ -204,13 +183,7 @@ namespace OpenSim.Modules.DataValue [ScriptInvocation] public bool osCheckDataValue(UUID hostID, UUID scriptID, string key, string value) { - return osCheckDataValue(hostID, scriptID, key, false); - } - - [ScriptInvocation] - public bool osCheckDataValue(UUID hostID, UUID scriptID, string key, bool personal) - { - string _filePath = getFilePath(hostID, key, personal); + string _filePath = getFilePath(hostID, key); FileInfo file = new FileInfo(_filePath);