aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
authorDavid Walter Seikel2016-01-17 16:40:55 +1000
committerDavid Walter Seikel2016-01-17 16:40:55 +1000
commit8bc187593dc437ee28459586d1ebeb8c4df504c4 (patch)
treeed6c0dafe6a786894a84deac1dd09070b6d96376 /src
parentCatch "return ..." as well as "function(...". (diff)
downloadSledjHamr-8bc187593dc437ee28459586d1ebeb8c4df504c4.zip
SledjHamr-8bc187593dc437ee28459586d1ebeb8c4df504c4.tar.gz
SledjHamr-8bc187593dc437ee28459586d1ebeb8c4df504c4.tar.bz2
SledjHamr-8bc187593dc437ee28459586d1ebeb8c4df504c4.tar.xz
Bunch of debuggingnesses.
Diffstat (limited to '')
-rw-r--r--src/LuaSL/LuaSL_main.c5
-rw-r--r--src/love/love.c3
2 files changed, 6 insertions, 2 deletions
diff --git a/src/LuaSL/LuaSL_main.c b/src/LuaSL/LuaSL_main.c
index 7e9d935..f8931e6 100644
--- a/src/LuaSL/LuaSL_main.c
+++ b/src/LuaSL/LuaSL_main.c
@@ -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
226//PD("COMMAND - %s", command); 226//PD("PARSE 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;
@@ -279,7 +279,10 @@ PD("Running script %s", me->fileName);
279 ecore_main_loop_quit(); 279 ecore_main_loop_quit();
280 } 280 }
281 else 281 else
282 {
283//PD("Sending -> script %s : %s", SID, command);
282 send2script(SID, command); 284 send2script(SID, command);
285 }
283 286
284 return ECORE_CALLBACK_RENEW; 287 return ECORE_CALLBACK_RENEW;
285} 288}
diff --git a/src/love/love.c b/src/love/love.c
index b296b58..f8ce522 100644
--- a/src/love/love.c
+++ b/src/love/love.c
@@ -197,7 +197,7 @@ static Eina_Bool LuaSLParser(void *data, Connection *conn, char *SID, char *comm
197 char buf[PATH_MAX]; 197 char buf[PATH_MAX];
198 LoveScript *me; 198 LoveScript *me;
199 199
200PD("COMMAND - %s - %s", SID, command); 200//PD("COMMAND - %s - %s", SID, command);
201 me = eina_hash_find(ourGlobals->scripts, SID); 201 me = eina_hash_find(ourGlobals->scripts, SID);
202 if (0 == strncmp(command, "compilerWarning(", 16)) 202 if (0 == strncmp(command, "compilerWarning(", 16))
203 { 203 {
@@ -282,6 +282,7 @@ PD("COMMAND - %s - %s", SID, command);
282 } 282 }
283 else 283 else
284 { 284 {
285//PD("FAKING (maybe) %s", command);
285 // Send back some random or fixed values for testing. 286 // Send back some random or fixed values for testing.
286 if (0 == strcmp(command, "llGetKey()")) 287 if (0 == strcmp(command, "llGetKey()"))
287 sendForth(ourGlobals->serverLuaSL, SID, "return \"%08lx-%04lx-%04lx-%04lx-%012lx\"", random(), random() % 0xFFFF, random() % 0xFFFF, random() % 0xFFFF, random()); 288 sendForth(ourGlobals->serverLuaSL, SID, "return \"%08lx-%04lx-%04lx-%04lx-%012lx\"", random(), random() % 0xFFFF, random() % 0xFFFF, random() % 0xFFFF, random());