diff options
author | David Walter Seikel | 2014-06-01 18:42:37 +1000 |
---|---|---|
committer | David Walter Seikel | 2014-06-01 18:42:37 +1000 |
commit | f0cce6bd0e7bfafcaf91df0dccd16f43cba1ea4b (patch) | |
tree | fcb1688da21eca15a7334e04dfd1cb029450d2db /src/love | |
parent | TODO++ (diff) | |
download | SledjHamr-f0cce6bd0e7bfafcaf91df0dccd16f43cba1ea4b.zip SledjHamr-f0cce6bd0e7bfafcaf91df0dccd16f43cba1ea4b.tar.gz SledjHamr-f0cce6bd0e7bfafcaf91df0dccd16f43cba1ea4b.tar.bz2 SledjHamr-f0cce6bd0e7bfafcaf91df0dccd16f43cba1ea4b.tar.xz |
Get the from disk sim loading to work.
Still an odd problem with sonic that doesn't make sense.
Diffstat (limited to 'src/love')
-rw-r--r-- | src/love/love.c | 15 |
1 files changed, 11 insertions, 4 deletions
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) | |||
506 | 506 | ||
507 | static Eina_Bool _addClient(void *data, int type, Ecore_Con_Event_Client_Add *ev) | 507 | static Eina_Bool _addClient(void *data, int type, Ecore_Con_Event_Client_Add *ev) |
508 | { | 508 | { |
509 | gameGlobals *ourGlobals = data; | 509 | gameGlobals *ourGlobals = data; |
510 | 510 | ||
511 | ourGlobals->client = ev->client; | 511 | ourGlobals->client = ev->client; |
512 | ecore_con_client_timeout_set(ev->client, 0); | 512 | ecore_con_client_timeout_set(ev->client, 0); |
513 | return ECORE_CALLBACK_RENEW; | 513 | |
514 | if (ourGlobals->client) | ||
515 | { | ||
516 | // TODO - Sending the currently hard coded ownerKey here, should actually deal with logging in / hypergrid TP style things instead. | ||
517 | sendBack(ourGlobals->client, ownerKey, "loadSim('file://%s/Test%%20sim')", prefix_data_get()); | ||
518 | } | ||
519 | |||
520 | return ECORE_CALLBACK_RENEW; | ||
514 | } | 521 | } |
515 | 522 | ||
516 | static Eina_Bool _dataClient(void *data, int type, Ecore_Con_Event_Client_Data *ev) | 523 | static Eina_Bool _dataClient(void *data, int type, Ecore_Con_Event_Client_Data *ev) |