Add in a stub for llSHA1String. I believe it is the only one new

function we were missing.
0.6.3-post-fixes
Charles Krinke 2009-01-28 04:50:25 +00:00
parent 8c859fa37d
commit fe18adbc11
3 changed files with 12 additions and 1 deletions

View File

@ -5887,6 +5887,11 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
return Util.Md5Hash(src + ":" + nonce.ToString()); return Util.Md5Hash(src + ":" + nonce.ToString());
} }
public LSL_String llSHA1String(string src)
{
m_host.AddScriptLPS(1);
return ""; //ckrinke 1/27 This needs to return a proper hash.
}
private ObjectShapePacket.ObjectDataBlock SetPrimitiveBlockShapeParams(SceneObjectPart part, int holeshape, LSL_Vector cut, float hollow, LSL_Vector twist) private ObjectShapePacket.ObjectDataBlock SetPrimitiveBlockShapeParams(SceneObjectPart part, int holeshape, LSL_Vector cut, float hollow, LSL_Vector twist)
{ {
ObjectShapePacket.ObjectDataBlock shapeBlock = new ObjectShapePacket.ObjectDataBlock(); ObjectShapePacket.ObjectDataBlock shapeBlock = new ObjectShapePacket.ObjectDataBlock();

View File

@ -233,7 +233,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces
void llMakeFountain(int particles, float scale, float vel, float lifetime, float arc, int bounce, string texture, LSL_Vector offset, float bounce_offset); void llMakeFountain(int particles, float scale, float vel, float lifetime, float arc, int bounce, string texture, LSL_Vector offset, float bounce_offset);
void llMakeSmoke(int particles, double scale, double vel, double lifetime, double arc, string texture, LSL_Vector offset); void llMakeSmoke(int particles, double scale, double vel, double lifetime, double arc, string texture, LSL_Vector offset);
void llMapDestination(string simname, LSL_Vector pos, LSL_Vector look_at); void llMapDestination(string simname, LSL_Vector pos, LSL_Vector look_at);
LSL_String llMD5String(string src, int nonce); LSL_String llMD5String(string src, int nonce);
LSL_String llSHA1String(string src);
void llMessageLinked(int linknum, int num, string str, string id); void llMessageLinked(int linknum, int num, string str, string id);
void llMinEventDelay(double delay); void llMinEventDelay(double delay);
void llModifyLand(int action, int brush); void llModifyLand(int action, int brush);

View File

@ -1029,6 +1029,11 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
return m_LSL_Functions.llMD5String(src, nonce); return m_LSL_Functions.llMD5String(src, nonce);
} }
public LSL_String llSHA1String(string src)
{
return m_LSL_Functions.llSHA1String(src);
}
public void llMessageLinked(int linknum, int num, string str, string id) public void llMessageLinked(int linknum, int num, string str, string id)
{ {
m_LSL_Functions.llMessageLinked(linknum, num, str, id); m_LSL_Functions.llMessageLinked(linknum, num, str, id);