aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/LuaSL
diff options
context:
space:
mode:
Diffstat (limited to 'src/LuaSL')
-rw-r--r--src/LuaSL/LuaSL_main.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/LuaSL/LuaSL_main.c b/src/LuaSL/LuaSL_main.c
index a412027..7e9d935 100644
--- a/src/LuaSL/LuaSL_main.c
+++ b/src/LuaSL/LuaSL_main.c
@@ -73,7 +73,7 @@ void send2server(script *me, const char *message)
73{ 73{
74 gameGlobals *ourGlobals = me->data; 74 gameGlobals *ourGlobals = me->data;
75 75
76//printf("GOT MESSAGE from script %s - '%s'\n", me->name, message); 76//PD("GOT MESSAGE from script %s - '%s'", me->name, message);
77 77
78 if (0 == strncmp(message, "llSleep(", 8)) 78 if (0 == strncmp(message, "llSleep(", 8))
79 ecore_timer_add(atof(&(message)[8]), _sleep_timer_cb, me); 79 ecore_timer_add(atof(&(message)[8]), _sleep_timer_cb, me);
@@ -223,7 +223,7 @@ static Eina_Bool parser(void *data, Connection *connection, char *SID, char *com
223 gameGlobals *ourGlobals = data; 223 gameGlobals *ourGlobals = data;
224 char buf[PATH_MAX]; 224 char buf[PATH_MAX];
225 225
226PW("COMMAND - %s", command); 226//PD("COMMAND - %s", command);
227 if (0 == strncmp(command, "compile(", 8)) 227 if (0 == strncmp(command, "compile(", 8))
228 { 228 {
229 char *temp; 229 char *temp;
@@ -244,7 +244,7 @@ PW("COMMAND - %s", command);
244 compiler->doConstants = FALSE; 244 compiler->doConstants = FALSE;
245 compiler->parser = (compileCb) compileLSL; 245 compiler->parser = (compileCb) compileLSL;
246 compiler->cb = _compileCb; 246 compiler->cb = _compileCb;
247PI("Compiling script %s", file); 247PD("Compiling script %s", file);
248 compileScript(compiler, COMPILE_THREADED); 248 compileScript(compiler, COMPILE_THREADED);
249 } 249 }
250 else if (0 == strncmp(command, "run(", 4)) 250 else if (0 == strncmp(command, "run(", 4))
@@ -266,14 +266,16 @@ PI("Compiling script %s", file);
266 me = getScript(SID); 266 me = getScript(SID);
267 if (me) 267 if (me)
268 { 268 {
269PI("Running script %s", me->fileName); 269PD("Running script %s", me->fileName);
270 runScript(me); 270 runScript(me);
271 releaseScript(me); 271 releaseScript(me);
272 } 272 }
273 else
274 PE("Failed to run script %s", me->fileName);
273 } 275 }
274 else if (0 == strcmp(command, "exit()")) 276 else if (0 == strcmp(command, "exit()"))
275 { 277 {
276 PD("Told to exit."); 278 PI("Told to exit.");
277 ecore_main_loop_quit(); 279 ecore_main_loop_quit();
278 } 280 }
279 else 281 else
@@ -319,7 +321,7 @@ int main(int argc, char **argv)
319 } 321 }
320 else if (ecore_con_init()) 322 else if (ecore_con_init())
321 { 323 {
322 PD("LuaSL is about to try creating a LuaSL server."); 324// PD("LuaSL is about to try creating a LuaSL server.");
323 if (openArms("LuaSL", ourGlobals.address, ourGlobals.port, &ourGlobals, NULL, NULL, NULL, parser)) 325 if (openArms("LuaSL", ourGlobals.address, ourGlobals.port, &ourGlobals, NULL, NULL, NULL, parser))
324 { 326 {
325 Eina_Iterator *scripts; 327 Eina_Iterator *scripts;