From f0cce6bd0e7bfafcaf91df0dccd16f43cba1ea4b Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Sun, 1 Jun 2014 18:42:37 +1000 Subject: Get the from disk sim loading to work. Still an odd problem with sonic that doesn't make sense. --- src/love/love.c | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'src/love/love.c') diff --git a/src/love/love.c b/src/love/love.c index 7d50917..9c24cd3 100644 --- a/src/love/love.c +++ b/src/love/love.c @@ -506,11 +506,18 @@ static Eina_Bool _delLuaSL(void *data, int type, Ecore_Con_Event_Server_Del *ev) static Eina_Bool _addClient(void *data, int type, Ecore_Con_Event_Client_Add *ev) { - gameGlobals *ourGlobals = data; + gameGlobals *ourGlobals = data; - ourGlobals->client = ev->client; - ecore_con_client_timeout_set(ev->client, 0); - return ECORE_CALLBACK_RENEW; + ourGlobals->client = ev->client; + ecore_con_client_timeout_set(ev->client, 0); + + if (ourGlobals->client) + { + // TODO - Sending the currently hard coded ownerKey here, should actually deal with logging in / hypergrid TP style things instead. + sendBack(ourGlobals->client, ownerKey, "loadSim('file://%s/Test%%20sim')", prefix_data_get()); + } + + return ECORE_CALLBACK_RENEW; } static Eina_Bool _dataClient(void *data, int type, Ecore_Con_Event_Client_Data *ev) -- cgit v1.1