aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/love
diff options
context:
space:
mode:
authorDavid Walter Seikel2014-05-28 15:51:47 +1000
committerDavid Walter Seikel2014-05-28 15:51:47 +1000
commit98170010ee92c807650bd529216612532975c14e (patch)
tree7f7030cdc9d4b3f65329603d4f79be2405aa9f6e /src/love
parentOops part two. (diff)
downloadSledjHamr-98170010ee92c807650bd529216612532975c14e.zip
SledjHamr-98170010ee92c807650bd529216612532975c14e.tar.gz
SledjHamr-98170010ee92c807650bd529216612532975c14e.tar.bz2
SledjHamr-98170010ee92c807650bd529216612532975c14e.tar.xz
The UUID faking code is common enough to stick it in a macro.
Diffstat (limited to 'src/love')
-rw-r--r--src/love/love.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/love/love.c b/src/love/love.c
index dc27d9c..7d50917 100644
--- a/src/love/love.c
+++ b/src/love/love.c
@@ -146,7 +146,7 @@ static void dirList_compile(const char *name, const char *path, void *data)
146 146
147 scriptCount++; 147 scriptCount++;
148 gettimeofday(&me->startTime, NULL); 148 gettimeofday(&me->startTime, NULL);
149 snprintf(me->SID, sizeof(me->SID), "%08lx-%04lx-%04lx-%04lx-%012lx", random(), random() % 0xFFFF, random() % 0xFFFF, random() % 0xFFFF, random()); 149 snprintf(me->SID, sizeof(me->SID), FAKE_UUID);
150 snprintf(me->fileName, sizeof(me->fileName), "%s/%s", path, name); 150 snprintf(me->fileName, sizeof(me->fileName), "%s/%s", path, name);
151 eina_hash_add(ourGlobals->scripts, me->SID, me); 151 eina_hash_add(ourGlobals->scripts, me->SID, me);
152 sendForth(ourGlobals->serverLuaSL, me->SID, "compile(%s)", me->fileName); 152 sendForth(ourGlobals->serverLuaSL, me->SID, "compile(%s)", me->fileName);
@@ -431,7 +431,7 @@ static Eina_Bool _dataLuaSL(void *data, int type, Ecore_Con_Event_Server_Data *e
431 } 431 }
432 } while (temp && (0 < lineNo--)); 432 } while (temp && (0 < lineNo--));
433 433
434 sprintf(key, "%08lx-%04lx-%04lx-%04lx-%012lx", random(), random() % 0xFFFF, random() % 0xFFFF, random() % 0xFFFF, random()); 434 sprintf(key, FAKE_UUID);
435 sendForth(ourGlobals->serverLuaSL, SID, "return \"%s\"", key); 435 sendForth(ourGlobals->serverLuaSL, SID, "return \"%s\"", key);
436 436
437 // TODO - For now, just send it to everyone. 437 // TODO - For now, just send it to everyone.