From 0e87ee7a5e36799b0693cca3283e9464340b14b9 Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Tue, 27 May 2014 05:33:43 +1000 Subject: Last part of switching the sim over to the new specs. --- src/libraries/love.h | 7 ++++--- src/love/love.c | 4 ++-- 2 files changed, 6 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/libraries/love.h b/src/libraries/love.h index f75d5e7..cbd4c80 100644 --- a/src/libraries/love.h +++ b/src/libraries/love.h @@ -132,9 +132,10 @@ typedef struct _stuffs //type union { - Mesh *mesh; - script *scrip; // Not a typo, C++ is fussy about reusing names like this. - void *other; + Eina_Inarray stuffs; // Stuffs in the sim + Mesh *mesh; + script *scrip; // Not a typo, C++ is fussy about reusing names like this. + void *other; } details; } Stuffs; diff --git a/src/love/love.c b/src/love/love.c index 1a38e2b..dc27d9c 100644 --- a/src/love/love.c +++ b/src/love/love.c @@ -163,7 +163,7 @@ static Eina_Bool _addLuaSL(void *data, int type, Ecore_Con_Event_Server_Add *ev) // Compile and run scripts. gettimeofday(&startTime, NULL); - snprintf(buf, sizeof(buf), "%s/Test sim/objects", prefix_data_get()); + snprintf(buf, sizeof(buf), "%s/Test%%20sim", prefix_data_get()); eina_file_dir_list(buf, EINA_TRUE, dirList_compile, data); return ECORE_CALLBACK_RENEW; @@ -410,7 +410,7 @@ static Eina_Bool _dataLuaSL(void *data, int type, Ecore_Con_Event_Server_Data *e temp++; temp[0] = '\0'; lineNo = atoi(line); - snprintf(key, sizeof(key), "%s/Test sim/objects/onefang%%27s%%20test%%20bed.5cb927d5-1304-4f1a-9947-308251ef2df0/%s", prefix_data_get(), notecard); + snprintf(key, sizeof(key), "%s/Test%%20sim/onefang%%27s%%20test%%20bed/%s", prefix_data_get(), notecard); fd = open(key, O_RDONLY); if (-1 != fd) -- cgit v1.1