diff options
author | David Walter Seikel | 2014-05-17 12:19:33 +1000 |
---|---|---|
committer | David Walter Seikel | 2014-05-17 12:19:33 +1000 |
commit | cb2bad80df8b991ec11b93013d8ca8a68c318d6f (patch) | |
tree | bcce4dbf390f710e42b65b7317fb5f3c317d3e52 /src | |
parent | Faked llListen(). (diff) | |
download | SledjHamr-cb2bad80df8b991ec11b93013d8ca8a68c318d6f.zip SledjHamr-cb2bad80df8b991ec11b93013d8ca8a68c318d6f.tar.gz SledjHamr-cb2bad80df8b991ec11b93013d8ca8a68c318d6f.tar.bz2 SledjHamr-cb2bad80df8b991ec11b93013d8ca8a68c318d6f.tar.xz |
Fake llRequestPermissions().
Diffstat (limited to 'src')
-rw-r--r-- | src/love/love.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/love/love.c b/src/love/love.c index b47418e..2d5f2a4 100644 --- a/src/love/love.c +++ b/src/love/love.c | |||
@@ -300,6 +300,8 @@ static Eina_Bool _dataLuaSL(void *data, int type, Ecore_Con_Event_Server_Data *e | |||
300 | sendForth(ourGlobals->serverLuaSL, SID, "return \"%s\"", ownerKey); | 300 | sendForth(ourGlobals->serverLuaSL, SID, "return \"%s\"", ownerKey); |
301 | else if (0 == strcmp(command, "llGetPermissionsKey()")) | 301 | else if (0 == strcmp(command, "llGetPermissionsKey()")) |
302 | sendForth(ourGlobals->serverLuaSL, SID, "return \"%s\"", ownerKey); | 302 | sendForth(ourGlobals->serverLuaSL, SID, "return \"%s\"", ownerKey); |
303 | else if (0 == strncmp(command, "llRequestPermissions(", 21)) | ||
304 | PI("Faked %s", command); | ||
303 | else if (0 == strcmp(command, "llGetPos()")) | 305 | else if (0 == strcmp(command, "llGetPos()")) |
304 | sendForth(ourGlobals->serverLuaSL, SID, "return {x=128.0, y=128.0, z=128.0}"); | 306 | sendForth(ourGlobals->serverLuaSL, SID, "return {x=128.0, y=128.0, z=128.0}"); |
305 | else if (0 == strcmp(command, "llGetRot()")) | 307 | else if (0 == strcmp(command, "llGetRot()")) |
@@ -322,7 +324,7 @@ static Eina_Bool _dataLuaSL(void *data, int type, Ecore_Con_Event_Server_Data *e | |||
322 | sendForth(ourGlobals->serverLuaSL, SID, "return \".MENUITEMS\""); | 324 | sendForth(ourGlobals->serverLuaSL, SID, "return \".MENUITEMS\""); |
323 | else if (0 == strncmp(command, "llListen(", 9)) | 325 | else if (0 == strncmp(command, "llListen(", 9)) |
324 | { | 326 | { |
325 | PI("Random listen requested %s", command); | 327 | PI("Faked %s", command); |
326 | sendForth(ourGlobals->serverLuaSL, SID, "return %d", random()); | 328 | sendForth(ourGlobals->serverLuaSL, SID, "return %d", random()); |
327 | } | 329 | } |
328 | else if (0 == strncmp(command, "llSameGroup(", 12)) | 330 | else if (0 == strncmp(command, "llSameGroup(", 12)) |