aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/extantz
diff options
context:
space:
mode:
authorDavid Walter Seikel2014-05-16 19:05:01 +1000
committerDavid Walter Seikel2014-05-16 19:05:01 +1000
commit0809e748eb6d6d6da25806cd01c512463d059960 (patch)
tree6aed0e687c785c3c47a4e5d4eb37cb2efafab649 /src/extantz
parentAdd the purkle say() command. (diff)
downloadSledjHamr-0809e748eb6d6d6da25806cd01c512463d059960.zip
SledjHamr-0809e748eb6d6d6da25806cd01c512463d059960.tar.gz
SledjHamr-0809e748eb6d6d6da25806cd01c512463d059960.tar.bz2
SledjHamr-0809e748eb6d6d6da25806cd01c512463d059960.tar.xz
For llDialog(), add a simple implementation to LSLGuiMess, and call it badly from extantz.
Still trying to debug this.
Diffstat (limited to 'src/extantz')
-rw-r--r--src/extantz/extantz.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/extantz/extantz.c b/src/extantz/extantz.c
index 5122f42..c980b3e 100644
--- a/src/extantz/extantz.c
+++ b/src/extantz/extantz.c
@@ -46,27 +46,27 @@ static Eina_Bool _data(void *data, int type, Ecore_Con_Event_Server_Data *ev)
46 || (0 == strncmp(command, "llSay(", 6)) 46 || (0 == strncmp(command, "llSay(", 6))
47 || (0 == strncmp(command, "llShout(", 8))) 47 || (0 == strncmp(command, "llShout(", 8)))
48 { 48 {
49 int _M; 49 int _P;
50char *name = "that's me";
50 51
51 sprintf(buf, "%s: %s", SID, command);
52 lua_getfield(ourGlobals->purkle->L, LUA_REGISTRYINDEX, ourGlobals->purkle->name); 52 lua_getfield(ourGlobals->purkle->L, LUA_REGISTRYINDEX, ourGlobals->purkle->name);
53 _M = lua_gettop(ourGlobals->purkle->L); 53 _P = lua_gettop(ourGlobals->purkle->L);
54 push_lua(ourGlobals->purkle->L, "@ ( $ )", _M, "append", buf, 0); 54
55 sprintf(buf, "%s: %s", SID, command);
56 push_lua(ourGlobals->purkle->L, "@ ( $ )", _P, "append", buf, 0);
57// push_lua(ourGlobals->purkle->L, "@ ( $ %a $b $c $d )", _P, "say", _P, name, SID, buf, 0);
55 } 58 }
56 else if (0 == strncmp(command, "llDialog(", 9)) 59 else if (0 == strncmp(command, "llDialog(", 9))
57 { 60 {
58 int _M; 61 int _M;
59 62
60 sprintf(buf, "%s: %s", SID, command);
61 lua_getfield(ourGlobals->purkle->L, LUA_REGISTRYINDEX, ourGlobals->purkle->name);
62 _M = lua_gettop(ourGlobals->purkle->L);
63 push_lua(ourGlobals->purkle->L, "@ ( $ )", _M, "append", buf, 0);
64
65 lua_getfield(ourGlobals->LSLGuiMess->L, LUA_REGISTRYINDEX, ourGlobals->LSLGuiMess->name); 63 lua_getfield(ourGlobals->LSLGuiMess->L, LUA_REGISTRYINDEX, ourGlobals->LSLGuiMess->name);
66 _M = lua_gettop(ourGlobals->LSLGuiMess->L); 64 _M = lua_gettop(ourGlobals->LSLGuiMess->L);
67 65
68 PI("Dialog from %s - %s", SID, command);
69 // TODO - Somewhere in the chain the new lines that MLP likes to put into llDialog's message munge things. Fix that. 66 // TODO - Somewhere in the chain the new lines that MLP likes to put into llDialog's message munge things. Fix that.
67 sprintf(buf, "%s: %s", SID, command);
68 push_lua(ourGlobals->LSLGuiMess->L, "@ ( $ )", _M, "doLua", command, 0);
69
70 } 70 }
71 else 71 else
72 { 72 {