diff options
author | David Walter Seikel | 2016-01-17 16:40:55 +1000 |
---|---|---|
committer | David Walter Seikel | 2016-01-17 16:40:55 +1000 |
commit | 8bc187593dc437ee28459586d1ebeb8c4df504c4 (patch) | |
tree | ed6c0dafe6a786894a84deac1dd09070b6d96376 /src/love | |
parent | Catch "return ..." as well as "function(...". (diff) | |
download | SledjHamr-8bc187593dc437ee28459586d1ebeb8c4df504c4.zip SledjHamr-8bc187593dc437ee28459586d1ebeb8c4df504c4.tar.gz SledjHamr-8bc187593dc437ee28459586d1ebeb8c4df504c4.tar.bz2 SledjHamr-8bc187593dc437ee28459586d1ebeb8c4df504c4.tar.xz |
Bunch of debuggingnesses.
Diffstat (limited to 'src/love')
-rw-r--r-- | src/love/love.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 | ||
200 | PD("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()); |