From 1a7ddf67e7efc14a1667b784da6c51ab5834e5e1 Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Sat, 17 May 2014 18:05:00 +1000 Subject: Get rid of the last of the artificial delays. --- src/love/love.c | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) (limited to 'src/love') diff --git a/src/love/love.c b/src/love/love.c index c33fe2c..257d957 100644 --- a/src/love/love.c +++ b/src/love/love.c @@ -154,26 +154,19 @@ static void dirList_compile(const char *name, const char *path, void *data) } } -static Eina_Bool _timer_cb(void *data) +static Eina_Bool _addLuaSL(void *data, int type, Ecore_Con_Event_Server_Add *ev) { -// gameGlobals *ourGlobals = data; + gameGlobals *ourGlobals = data; char buf[PATH_MAX]; + ourGlobals->serverLuaSL = ev->server; + + // Compile and run scripts. gettimeofday(&startTime, NULL); snprintf(buf, sizeof(buf), "%s/Test sim/objects", PACKAGE_DATA_DIR); eina_file_dir_list(buf, EINA_TRUE, dirList_compile, data); - return ECORE_CALLBACK_CANCEL; -} - -static Eina_Bool _addLuaSL(void *data, int type, Ecore_Con_Event_Server_Add *ev) -{ - gameGlobals *ourGlobals = data; - - ourGlobals->serverLuaSL = ev->server; - // Wait a while before compiling and running scripts. - ecore_timer_add(3.0, _timer_cb, ourGlobals); - return ECORE_CALLBACK_RENEW; + return ECORE_CALLBACK_RENEW; } -- cgit v1.1