Fix preload after removal of ecore_main_loop_begin
Since this function doesn't exist anymore, we need to catch the loop begin in a different way.
This commit is contained in:
parent
09dc7c8353
commit
c83ed3fabb
|
@ -516,12 +516,11 @@ tsuite_feed_event(void *data)
|
|||
return ECORE_CALLBACK_CANCEL;
|
||||
}
|
||||
|
||||
void
|
||||
ecore_main_loop_begin(void)
|
||||
EOAPI Eina_Value *
|
||||
efl_loop_begin(Eo *obj)
|
||||
{
|
||||
void (*_ecore_main_loop_begin)(void) =
|
||||
dlsym(RTLD_NEXT, "ecore_main_loop_begin");
|
||||
|
||||
static Eina_Value * (*_foo)(Eo *) = NULL;
|
||||
if (!_foo) _foo = dlsym(RTLD_NEXT, __func__);
|
||||
|
||||
if (_hook_setting->file_name)
|
||||
{
|
||||
|
@ -558,7 +557,7 @@ ecore_main_loop_begin(void)
|
|||
}
|
||||
}
|
||||
|
||||
return _ecore_main_loop_begin();
|
||||
return _foo(obj);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Reference in New Issue