change return value

master
Christopher Latza 2020-06-11 00:01:35 +02:00
parent 29174c12f2
commit 76b4d882ae
1 changed files with 3 additions and 3 deletions

View File

@ -245,7 +245,7 @@ namespace OpenSim.Modules.DataValue
} }
[ScriptInvocation] [ScriptInvocation]
public bool osCheckDataValue(UUID hostID, UUID scriptID, string key, string value) public int osCheckDataValue(UUID hostID, UUID scriptID, string key, string value)
{ {
string _filePath = getFilePath(hostID, key); string _filePath = getFilePath(hostID, key);
@ -255,9 +255,9 @@ namespace OpenSim.Modules.DataValue
FileInfo file = new FileInfo(_filePath); FileInfo file = new FileInfo(_filePath);
if (file.Exists) if (file.Exists)
return true; return 1;
return false; return 0;
} }
#endregion #endregion