From 0809e748eb6d6d6da25806cd01c512463d059960 Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Fri, 16 May 2014 19:05:01 +1000 Subject: For llDialog(), add a simple implementation to LSLGuiMess, and call it badly from extantz. Still trying to debug this. --- src/extantz/extantz.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'src/extantz/extantz.c') 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) || (0 == strncmp(command, "llSay(", 6)) || (0 == strncmp(command, "llShout(", 8))) { - int _M; + int _P; +char *name = "that's me"; - sprintf(buf, "%s: %s", SID, command); lua_getfield(ourGlobals->purkle->L, LUA_REGISTRYINDEX, ourGlobals->purkle->name); - _M = lua_gettop(ourGlobals->purkle->L); - push_lua(ourGlobals->purkle->L, "@ ( $ )", _M, "append", buf, 0); + _P = lua_gettop(ourGlobals->purkle->L); + + sprintf(buf, "%s: %s", SID, command); + push_lua(ourGlobals->purkle->L, "@ ( $ )", _P, "append", buf, 0); +// push_lua(ourGlobals->purkle->L, "@ ( $ %a $b $c $d )", _P, "say", _P, name, SID, buf, 0); } else if (0 == strncmp(command, "llDialog(", 9)) { int _M; - sprintf(buf, "%s: %s", SID, command); - lua_getfield(ourGlobals->purkle->L, LUA_REGISTRYINDEX, ourGlobals->purkle->name); - _M = lua_gettop(ourGlobals->purkle->L); - push_lua(ourGlobals->purkle->L, "@ ( $ )", _M, "append", buf, 0); - lua_getfield(ourGlobals->LSLGuiMess->L, LUA_REGISTRYINDEX, ourGlobals->LSLGuiMess->name); _M = lua_gettop(ourGlobals->LSLGuiMess->L); - PI("Dialog from %s - %s", SID, command); // TODO - Somewhere in the chain the new lines that MLP likes to put into llDialog's message munge things. Fix that. + sprintf(buf, "%s: %s", SID, command); + push_lua(ourGlobals->LSLGuiMess->L, "@ ( $ )", _M, "doLua", command, 0); + } else { -- cgit v1.1