aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
authorDavid Walter Seikel2014-05-16 10:37:13 +1000
committerDavid Walter Seikel2014-05-16 10:37:13 +1000
commit33d14b8dff91a3f6fcd0e9cc99482251178d42e6 (patch)
tree4a93904286cd5f5b517b0ecee2237ec317c80f24 /src
parentFake llKey2Name(), since there's only one user we know about at the moment. (diff)
downloadSledjHamr-33d14b8dff91a3f6fcd0e9cc99482251178d42e6.zip
SledjHamr-33d14b8dff91a3f6fcd0e9cc99482251178d42e6.tar.gz
SledjHamr-33d14b8dff91a3f6fcd0e9cc99482251178d42e6.tar.bz2
SledjHamr-33d14b8dff91a3f6fcd0e9cc99482251178d42e6.tar.xz
Slightly better faked llDialog(), plus remove newlines from the callers, since that's not handled yet.
Diffstat (limited to 'src')
-rw-r--r--src/extantz/extantz.c6
-rw-r--r--src/love/love.c1
2 files changed, 7 insertions, 0 deletions
diff --git a/src/extantz/extantz.c b/src/extantz/extantz.c
index cfda98c..e66750c 100644
--- a/src/extantz/extantz.c
+++ b/src/extantz/extantz.c
@@ -55,6 +55,12 @@ static Eina_Bool _data(void *data, int type, Ecore_Con_Event_Server_Data *ev)
55 } 55 }
56 else if (0 == strncmp(command, "llDialog(", 9)) 56 else if (0 == strncmp(command, "llDialog(", 9))
57 { 57 {
58 int _M;
59
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);
58 PI("Dialog from %s - %s", SID, command); 64 PI("Dialog from %s - %s", SID, command);
59 } 65 }
60 else 66 else
diff --git a/src/love/love.c b/src/love/love.c
index 113118c..aede741 100644
--- a/src/love/love.c
+++ b/src/love/love.c
@@ -368,6 +368,7 @@ static Eina_Bool _dataLuaSL(void *data, int type, Ecore_Con_Event_Server_Data *e
368 { 368 {
369 if (ourGlobals->client) sendBack(ourGlobals->client, SID, command); 369 if (ourGlobals->client) sendBack(ourGlobals->client, SID, command);
370 else PW("No where to send %s", command); 370 else PW("No where to send %s", command);
371 PD("DIALOG %s", command);
371 } 372 }
372 else if (0 == strncmp(command, "llMessageLinked(", 16)) 373 else if (0 == strncmp(command, "llMessageLinked(", 16))
373 { 374 {